Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

how to save the txt file into cmd format?

Featured Replies

hi

i would like to get some help form people in this wonderful forum

how can i convert my txt file to a cmd file?

where i have to save my batch file?

thank you

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 by InTheWayBoy

  • Author

thank you first

i would like to use it for my unattended xp dvd with office xp

do i have to provide 1 batch file or one for xp and one for office xp

thank you

Edited by sha6sho6

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 INSTALLER
ECHO PROGRAM installed.
ECHO.
ECHO Now installing PROGRAM 2 ...
; etc.

Edited by Asin

another way:

Control Panel > Folder Options > "View Tab" > uncheck "Hide extensions for known filetypes.

Then just rename you "something.txt" to "something.cmd"

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.

another way

start command prompt

point to ur folder

"ren filename.txt *.cmd"

  • Author

thanks to all

now what name should i give the file and where to replace it i mean i which folder

and do i have to write pragram 1 and 2 and the software name or what?

thank you

Edited by sha6sho6

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.

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.