milanlacn 0 Posted September 5, 2011 I'm pretty confused, when I run this in command line: "c:\Program Files\MKVtoolnix\mkvmerge.exe" -i "d:\1.mkv" > "d:\test.txt" everithing works great, but the exactly same thing using Run: Run(@ComSpec & ' /c "c:\Program Files\MKVtoolnix\mkvmerge.exe" -i "d:\1.mkv" > "d:\test.txt"') doesn't do anything. Find out that Run(@ComSpec & ' /c mkvmerge -i "d:\1.mkv" > "d:\test.txt"') works just fine (I have ""c:\Program Files\MKVtoolnix\" on my path) Can comeone please explain to me what I'm doing wrong? I'm guessing the problem is in the quotation marks? Big thanks! Share this post Link to post Share on other sites
Zedna 280 Posted September 5, 2011 (edited) Try this: Run(@ComSpec & ' /c mkvmerge.exe -i "d:\1.mkv" > "d:\test.txt"', 'c:\Program Files\MKVtoolnix\') Edited September 5, 2011 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Share this post Link to post Share on other sites
milanlacn 0 Posted September 5, 2011 Works like a charm! Thanks a lot Zedna!!! I don't really understand why is necessary set workingDir like that. But I'm glad it works! Thanks again! Share this post Link to post Share on other sites
Zedna 280 Posted September 5, 2011 I don't really understand why is necessary set workingDir like that. But I'm glad it works! command /c expect only COM/EXE/BAT file name without path so you must specify its path in Run's second parameter "working directory". Resources UDF ResourcesEx UDF AutoIt Forum Search Share this post Link to post Share on other sites
milanlacn 0 Posted September 6, 2011 Thanks for the explanaition!! Really appreciate it! Share this post Link to post Share on other sites