Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
.cmd file vs .bat file?
What are the differences between .cmd and .bat files? Which would be better if I made one to do the following command:
cd "C:\Program Files\<programname>"
program.exe
3 Answers
- Ngo Cong HuanLv 41 decade agoFavorite Answer
Nothing.
Cmd is used for backward compatible with previouse OS/2 sub system that Window NT supported. Bat for MS-DOS and Window
But more powerful is VBScript or JavaScript replace for Bat and cmd
Next generation is Windows PowerShell
- ?Lv 44 years ago
A BAT record (or DOS "batch" record) is a catalogue of DOS command line instructions saved as trouble-free text fabric and named with a ".BAT" extension. subsequently, a BAT record could be created utilising any text fabric editor, alongside with Notepad, PSPad, the DOS application edit, etc. what's significant is that the record is stored as trouble-free text fabric and that the record call leads to ".bat" (as antagonistic to ".txt" as a text fabric record commonly could). in the adventure that your text fabric archives do not commonly instruct the ".txt" area of the call, you will possibly be able to desire to instruct record extensions. Open any folder on your computer, then click procedures->concepts, and the navigate to the View tab, locate the alternative "conceal extensions for uncomplicated record kinds." and uncheck it. Then click ok. Now all archives will instruct their extensions (".document" for word information, ".exe" for executable classes, etc.) some trouble-free DOS batch instructions are: dir instruct a catalogue of all archives interior the present itemizing cd c:usersbillDesktop adjustments the present itemizing to invoice's laptop (any folder could be listed; if the path is composed of areas, use citation marks around the path). echo "hi" reflects "hi" on the exhibit screen. del C:junk.txt Deletes the junk.txt record on the C: power. (does not pass it to the Recycle Bin. that's long gone continuously!) replica C:junk2.txt C:junk3.txt Makes a replica of junk2.txt referred to as junk3.txt. in case you open the command instant (CMD.exe) and form "help" (without the fees), you will acquire a catalogue of the distinctive worry-unfastened instructions. in case you form "help dir" or "dir /?", you should acquire information on the dir command, for example. sturdy success including your foray into DOS shell programming/batch programming.