Get list of subfolders
All  1-3  4-7

Previous
Next
 From:  vector illustrator (QUARITEXA)
9640.4 In reply to 9640.3 
I tried
code:
var cd = moi.filesystem.getCommandsDir(); 
moi.filesystem.shellExecute('cmd.exe', '/c dir /a:d /b /o:n "' + cd + '" > "' + cd + 'dir.tmp"');

But it displays the shell window. How to suppress it?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Phiro
9640.5 In reply to 9640.4 
In your command line the /q option is missing
Perhaps is it the problem
The /c option is use to close the Window but /q avoids the echo
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9640.6 In reply to 9640.4 
Hi Quaritexa,

re:
> But it displays the shell window. How to suppress it?

A couple of possibilities here:
https://superuser.com/questions/191149/how-to-execute-cmd-exe-silently

Maybe this one:
http://www.joeware.net/freetools/tools/quiet/

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  vector illustrator (QUARITEXA)
9640.7 In reply to 9640.6 
Thank you, Michael.

I chose this one:
code:
var pd = moi.filesystem.getProcessDir();
var cd = moi.filesystem.getCommandsDir(); 
moi.filesystem.shellExecute(pd + 'nircmd', 'exec hide cmd.exe /c dir /a:d /b /o:n '+ cd + '> '+ cd + 'dir.tmp');
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-3  4-7