cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

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