cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : Windows Programming : Is it possible to open an exe file havin...
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Articles
Lounge
Jobs

-

post  Is it possible to open an exe file having a space in its name using Autorun.inf

Vijay Ram S (1)
I have a file named "my file.exe"
Is there any way to open this file using Autorun.inf?

I wrote an autorun file as shown below

[autorun]
open : my file.exe

but this is not working.
Is it possible to open such a file having a space in its name using the open command.
|
helios (829)
Reported. Irrelevant question.
|
Duoas (1456)
How do you mean, "irrelevant"? It is a DOS/Windows question.

Surround the filename with double-quotes:
1
2
[autorun]
open: "my file.exe"

I think that should work.

Hmm, to be fair, the question doesn't have any direct relationship to using C or C++.
|
Zaita (1450)
I think that should work.


+1
|

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2008 - All rights reserved - v2.2
Spotted an error? contact us