caspermurphy Posted April 4, 2005 Share Posted April 4, 2005 Good afternoon, I am trying to open a folder, where the folder name contains spaces. #include <Process.au3> _RunDos("start f:\Deleted Workbooks") I get an error cannot find the file 'f:\deleted' (or one of its components). However this will work: #include <Process.au3> _RunDos("start f:\DeletedWorkbooks") I realize it has to do with the space, I rather not have to rename the folder. Thank you in advanced for your help. :"> Link to comment Share on other sites More sharing options...
Kerberuz Posted April 4, 2005 Share Posted April 4, 2005 (edited) Good afternoon,I am trying to open a folder, where the folder name contains spaces.#include <Process.au3>_RunDos("start f:\Deleted Workbooks") I get an error cannot find the file 'f:\deleted' (or one of its components).However this will work:#include <Process.au3>_RunDos("start f:\DeletedWorkbooks")I realize it has to do with the space, I rather not have to rename the folder. Thank you in advanced for your help. :"><{POST_SNAPBACK}>Your quotes are not correct. When launching a program with spaces it needs to have quotes around it.Example:_RunDos("""C:\Program Files\Microsoft Office\Office\WINWORD.EXE""") Edited April 4, 2005 by Kerberuz Kerby Link to comment Share on other sites More sharing options...
caspermurphy Posted April 4, 2005 Author Share Posted April 4, 2005 Your quotes are not correct. When launching a program with spaces it needs to have quotes around it._RunDos("start ""f:\Deleted Workbooks""")<{POST_SNAPBACK}>Kerby, thank you for your reply, that works just great, except it opens up the folder in dos mode. Perhaps I missing something in my original post. I want to open that folder in an explorer window.Thank you again.John Link to comment Share on other sites More sharing options...
Kerberuz Posted April 4, 2005 Share Posted April 4, 2005 Kerby, thank you for your reply, that works just great, except it opens up the folder in dos mode. Perhaps I missing something in my original post. I want to open that folder in an explorer window.Thank you again.John<{POST_SNAPBACK}>Yes, try this one. Run ( "explorer ""C:\program files""") Kerby Link to comment Share on other sites More sharing options...
caspermurphy Posted April 4, 2005 Author Share Posted April 4, 2005 Yes, try this one. Run ( "explorer ""C:\program files""")<{POST_SNAPBACK}>Kerby,works great. Thank you very much 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