Jump to content

RunWait and quotes


Recommended Posts

I know this is my first post, but I'm trying to solve a big problem I'm having.

I'm trying to run a command-line program using the RunWait command, as seen in this line:

RunWait("lame --decode " & @ScriptDir & "\sound.mp3 " & $CmdLine[2])

This works fine, unless my script is in a directory with spaces in the name, for example, "C:\Program Files\"

Although I can force a path, I don't want to, because I'm trying to make the script non-directory-dependent.

Is there a way for me to enclose this command in double quotes without having to get rid of the "@ScriptDir"?

Thank you in advance for any help!

Link to comment
Share on other sites

Wouldn't that include the .au3 file in the path, though? Meaning the result would be "C:\Program files\My Script\script.au3sound.mp3"

Yes.

Try this

MsgBox((0x0, "Test","lame --decode " & @ScriptDir & "\sound.mp3 " & $CmdLine[2])

this used to help me all the time

8)

NEWHeader1.png

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...