Jump to content

Run commands and quotation marks problem


 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...