caspermurphy 0 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. :"> Share this post Link to post Share on other sites
Kerberuz 0 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 Share this post Link to post Share on other sites
caspermurphy 0 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 Share this post Link to post Share on other sites
Kerberuz 0 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 Share this post Link to post Share on other sites
caspermurphy 0 Posted April 4, 2005 Yes, try this one. Run ( "explorer ""C:\program files""")<{POST_SNAPBACK}>Kerby,works great. Thank you very much Share this post Link to post Share on other sites