cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
lwx228
Level VIII

How do I use JSL to completely remove files from my hard drive?

 

Hi!
For example, delete path c:\1.txt completely, instead of putting it in the recycle bin.
With JSL.
Thanks!

2 ACCEPTED SOLUTIONS

Accepted Solutions
uday_guntupalli
Level VIII

Re: How do I use JSL to completely remove files from my hard drive?

@lwx228
          You can use the Delete File function. If you look at the scripting index description of the function, the function has a second optional argument. 

FilePath = "C:\Test.xlsx";

Delete File(FilePath,0);

image.png

Best
Uday

View solution in original post

txnelson
Super User

Re: How do I use JSL to completely remove files from my hard drive?

@lwx228

Items such as what @uday_guntupalli has shown, are documented in the Scripting Guide

     Help==>Books==>Scripting Guide

and also in the Scripting Index

     Help==>Scripting Index

Jim

View solution in original post

3 REPLIES 3
uday_guntupalli
Level VIII

Re: How do I use JSL to completely remove files from my hard drive?

@lwx228
          You can use the Delete File function. If you look at the scripting index description of the function, the function has a second optional argument. 

FilePath = "C:\Test.xlsx";

Delete File(FilePath,0);

image.png

Best
Uday
txnelson
Super User

Re: How do I use JSL to completely remove files from my hard drive?

@lwx228

Items such as what @uday_guntupalli has shown, are documented in the Scripting Guide

     Help==>Books==>Scripting Guide

and also in the Scripting Index

     Help==>Scripting Index

Jim
lwx228
Level VIII

Re: How do I use JSL to completely remove files from my hard drive?

Thank  uday_guntupalli  and Jim for your help!

 

2018-11-28_22-30-42.png

Recommended Articles