milanlacn Posted September 5, 2011 Share 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! Link to comment Share on other sites More sharing options...
Zedna Posted September 5, 2011 Share 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 Link to comment Share on other sites More sharing options...
milanlacn Posted September 5, 2011 Author Share 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! Link to comment Share on other sites More sharing options...
Zedna Posted September 5, 2011 Share 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 Link to comment Share on other sites More sharing options...
milanlacn Posted September 6, 2011 Author Share Posted September 6, 2011 Thanks for the explanaition!! Really appreciate it! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now