Jump to content
Sign in to follow this  
Guest cloch

Run() has problems with spaces in path

Recommended Posts

Guest cloch

The following occurs when a path to an executeable contains spaces:

Run("C:\Programs\Some Files\bin\myprog.exe")

calls the executeable, but passes 'Files\bin\myprog.exe"' as parameter.


works as it should.

Same problem when working with parameters:

Run("C:\Programs\Some Files\bin\myprog.exe myparam")

calls the executeable, but passes 2 Parameters instead of one.

Run("C:\Programs\SomeFi~1\bin\myprog.exe myparam")

works as it should.

Share this post

Link to post
Share on other sites

this should of been support not bug reports

Run('"C:\Programs\Some Files\bin\myprog.exe"') 

Run('"C:\Programs\Some Files\bin\myprog.exe" myparam')

should work

SciTE for AutoItDirections for Submitting Standard UDFs


Don't argue with an idiot; people watching may not be able to tell the difference.


Share this post

Link to post
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

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.