cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

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