ShellExecuteCommand CMD VS Direct Call of WinRAR

Please post here if you have problems in using FTP Rush.
Post Reply
Rhino Cracker
Posts: 11
Joined: Mon Oct 31, 2011 11:20 am

ShellExecuteCommand CMD VS Direct Call of WinRAR

Post by Rhino Cracker »

Hi,

I'm trying to make a button to simply extract a rar file
therefore I'm executing in a FTPRush-Script:
ShellExecuteCommand('D:\Programme\WinRAR\WinRAR.exe','e ' + FilePath,FileDir,0);
But it doesn't recognize the e switch, it simply opens the file.

if I execute
ShellExecuteCommand('C:\Windows\system32\cmd.exe','/C D:\Programme\WinRAR\WinRAR.exe e ' + FilePath,FileDir,0);
instead, it works, but opens a dos window.

So I've wondered what's the difference between calling WinRAR.exe directly or passing it as parameter to cmd.exe.
And why the e switch is being ignored in the first version.
Post Reply