Jump to content

spaces in folder name


Recommended Posts

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

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

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

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

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