Sign in to follow this  
Followers 0
caspermurphy

spaces in folder name

5 posts in this topic

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



#2 ·  Posted (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 by Kerberuz

Kerby

Share this post


Link to post
Share on other sites

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

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

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

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  
Followers 0