cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
lala
Level VIII

How does this CMD command run with JSL?

CMD

reg export "HKEY_USERS\S-1-5-21-664984301-3062014895-3146206184-500\SOFTWARE\SAS Institute Inc.\JMP\Recent\Files" c:\1\abc.reg /y

2024-07-04_13-38-50.png

run program(executable("cmd.exe"),options({"reg export \!"HKEY_USERS\S-1-5-21-664984301-3062014895-3146206184-500\SOFTWARE\SAS Institute Inc.\JMP\Recent\Files\!" \!"c:\1\abc2.reg\!""}));//??

 

This code works in CMD.But how to write JSL

Thanks!
Like this JSL is executable

run program(executable("cmd.exe"),options({"/c Taskkill /im EXCEL.exe /f /t"}));
1 ACCEPTED SOLUTION

Accepted Solutions
lala
Level VIII

Re: How does this CMD command run with JSL?

  • It's a parameter issue, not a quotation mark issue.

2024-07-05_08-42-59.png

View solution in original post

5 REPLIES 5
jthi
Super User

Re: How does this CMD command run with JSL?

I think you can get a good idea how to extract those registry values if you check the code for FileSnapper 

-Jarmo
lala
Level VIII

Re: How does this CMD command run with JSL?

Thanks!

 

  • I am in need of how to execute this CMD command in JSL just fine.

lala
Level VIII

Re: How does this CMD command run with JSL?

OK、into a BAT

2024-07-04_14-36-33.png

jthi
Super User

Re: How does this CMD command run with JSL?

Most likely you have issues with the quotes, you might be able to change " to ' or something more fun like Pass quote into Run Program application 

-Jarmo
lala
Level VIII

Re: How does this CMD command run with JSL?

  • It's a parameter issue, not a quotation mark issue.

2024-07-05_08-42-59.png