Yzöwl Posted April 14, 2005 Share Posted April 14, 2005 Can I have em, and if so, how do I use em".\my_app.exe"is fine but what about my app.exe,"".\my app.exe""or,"\".\my app.exe\""please bear in mind before you reply, renaming is not an option. Link to comment Share on other sites More sharing options...
durex Posted April 14, 2005 Share Posted April 14, 2005 1st off, using the ".\" is kinda redundant isnt it? you can just use the name of the app since its sitting in the same folder as cmdlines.txtAccording to this and this it should be: "my app.exe" or ".\my app.exe"They both will do the same thing. Link to comment Share on other sites More sharing options...
un4given1 Posted April 14, 2005 Share Posted April 14, 2005 No, you can not use double quotes. If you require quotes use a batch file and call the batch file from the cmdlines.txt Link to comment Share on other sites More sharing options...
durex Posted April 14, 2005 Share Posted April 14, 2005 Yes you can. I do and again, that Microsoft link even says you can as well. Link to comment Share on other sites More sharing options...
Yzöwl Posted April 14, 2005 Author Share Posted April 14, 2005 According to this and this it should be: "my app.exe" or ".\my app.exe"They both will do the same thing.I have looked at both those pages in my extensive search, and spaces /double quotes are not mentioned.I've a tendency to say it cannot be done, mainly because there appears to be no examples anywhere of an entry 'with spaces', but that said, after two complete days searching, I haven't seen anything which states it cannot.It just seems a shame to include a batch just for a single command, as that is all I need. Link to comment Share on other sites More sharing options...
un4given1 Posted April 14, 2005 Share Posted April 14, 2005 you can use the 8.3 name... myapp~1.exe Link to comment Share on other sites More sharing options...
Yzöwl Posted April 14, 2005 Author Share Posted April 14, 2005 My example would allow it, but that was only, unfortunately now, a bad example. I am running an executable, but with a string argument, so it's the string which must remain in tact, with spaces.Thanks for that though, I haven't seen documented or in an example either! Link to comment Share on other sites More sharing options...
durex Posted April 14, 2005 Share Posted April 14, 2005 Heres your example... straight from M$.An example would be as follows:• I386\$OEM$\Cmdlines.txt• I386\$OEM$\SP3\Update.exe and the rest of the Service Pack 3 filesThe entry in Cmdlines.txt would be "./sp3/update.exe -u -n -q". Using the $OEM$ directory in this manner will keep the base $OEM$ directory from becoming cluttered.Also, I use "REGEDIT /S regfile.reg" without issue and if you count the amount of characters in "RunOnceEx.cmd" you get 9.3... so Im telling you.. spaces (using double quotes, parameters and long filenames do work in cmdlines.txt. Link to comment Share on other sites More sharing options...
Yzöwl Posted April 14, 2005 Author Share Posted April 14, 2005 That exactly the confirmation I required;Thanks durex, as un4given1 had stated, and I had guesed, it cannot be done without a batch file!If the application being installed needs quotation marks, such as referencing long file names, the use of batch files is necessary. Windows NT command prompt conventions state that files or folder with long file names must be surrounded by quotation marks. The entry "./setup.exe "information file with a long file name.inf"" will not work in the Cmdlines.txt file because of the double quotation marks being used. To get around this, create a file named Batch.bat, place this file in the $OEM$ directory. The batch.bat file would contain the following line: setup.exe "information file with a long file name.inf" Link to comment Share on other sites More sharing options...
durex Posted April 14, 2005 Share Posted April 14, 2005 I guess i completely missed that part... but that doesnt make any sense... cause according to that, my entries of "RunOnceEx.cmd" and "REGEDIT /S regfile.reg" shouldnt work, right? Link to comment Share on other sites More sharing options...
Yzöwl Posted April 14, 2005 Author Share Posted April 14, 2005 That'll work fine, whereas "REGEDIT /S My regfile.reg" will not. Link to comment Share on other sites More sharing options...
durex Posted April 15, 2005 Share Posted April 15, 2005 Ah... now that I havent tried... apologies to ya and unforgiven for misunderstanding. 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