sha6sho6 Posted September 2, 2005 Posted September 2, 2005 hii would like to get some help form people in this wonderful forumhow can i convert my txt file to a cmd file?where i have to save my batch file?thank you
InTheWayBoy Posted September 2, 2005 Posted September 2, 2005 (edited) Okay...let's say you are using Notepad to work with the file. Get it all ready, then go to file and then save...when the dialog box pops ups enter in the file name you want to save it as. file.cmd for instance...now the trick is to enclose that with " " like this:"file.cmd" If you have that in the name spot it will save it as whatever is in the quotes. Of course, if you save a file as a bat file and it's not correct syntax then you're still not gonna get it working.As for where to save it...what are you doing with it? Need more info as to what the batch is gonna accomplish. Edited September 2, 2005 by InTheWayBoy
sha6sho6 Posted September 2, 2005 Author Posted September 2, 2005 (edited) thank you firsti would like to use it for my unattended xp dvd with office xpdo i have to provide 1 batch file or one for xp and one for office xpthank you Edited September 2, 2005 by sha6sho6
Asin Posted September 2, 2005 Posted September 2, 2005 (edited) You can do it either way.The GuiRunOnce section can accept multiple commands, or just one. It's usually better to use just one just in case something causes it to skip the other ones for whatever reason.If you need to track down what is and what is not installing, just use commands like:ECHO Now installing PROGRAM ...RUN INSTALLERECHO PROGRAM installed.ECHO.ECHO Now installing PROGRAM 2 ...; etc. Edited September 2, 2005 by Asin
DigeratiPrime Posted September 2, 2005 Posted September 2, 2005 another way:Control Panel > Folder Options > "View Tab" > uncheck "Hide extensions for known filetypes.Then just rename you "something.txt" to "something.cmd"
Asin Posted September 3, 2005 Posted September 3, 2005 another way:Control Panel > Folder Options > "View Tab" > uncheck "Hide extensions for known filetypes.Then just rename you "something.txt" to "something.cmd"True, but that doesn't help you in the Save dialog.Not unless you select All Files in the drop down menu instead of Text Files. But if you do that, then it doesn't matter if extensions for known filetypes are hidden or not. If you use All Files, you won't need the quotes either.
Nepali Posted September 3, 2005 Posted September 3, 2005 another waystart command prompt point to ur folder"ren filename.txt *.cmd"
sha6sho6 Posted September 3, 2005 Author Posted September 3, 2005 (edited) thanks to allnow what name should i give the file and where to replace it i mean i which folderand do i have to write pragram 1 and 2 and the software name or what?thank you Edited September 3, 2005 by sha6sho6
Asin Posted September 3, 2005 Posted September 3, 2005 You can put it anywhere that you want. Although, if you wish to use the GuiRunOnce section to run this file after the first login, it would be better to have some file on the hard drive first. That is, you need to put this in the $OEM$\$1 or $OEM$\$$ folder on your CD. The $1 folder is preferable since $$ means your Windows root directory.In this file, you can have it call two other batch files, or just put all the commands in the one file.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now