1.

Solve : Any Real Tutorial for DOS/BATCH?

Answer» <html><body><p>Hello,<br/>            first post in this forum: although i h' learn't a little bit of <a href="https://interviewquestions.tuteehub.com/tag/dos-432778" style="font-weight:bold;" target="_blank" title="Click to know more about DOS">DOS</a> and making bat files (still practicing/using in Virtual <a href="https://interviewquestions.tuteehub.com/tag/box-401352" style="font-weight:bold;" target="_blank" title="Click to know more about BOX">BOX</a>): and its not too hard finding Tutorial's for BAT and DOS cmds. <br/>            <br/>    But i just wanted some pointers from experienced DOS Users a sure and quick method to learn making BAT and DOS cmds ( i know only a fraction of DOS cmd's ) i really want to learn to use the switches/parameters that are necessary for making BAT files.  Its would be a great help. <br/>      <br/>This command will transfer the batch file to the users startup folder where %username% is a username variable that the batch file will work out and all you have to do is change "file-name.bat to the name of your batch file<br/><br/>copy "file-name.bat" "%systemdrive%\users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"or<br/><br/> Code: <a>[Select]</a><br/>copy %0.bat "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup"<br/><br/><br/>Which will actually work if the users profile folder is on another drive such as a second partition or a drive as well as in a networked environment where the profile folder is often mapped to a network drive.<br/><br/>Either way, it seems completely irrelevant to what the original post was requesting. <br/><br/><br/>Floppyman: Personally, my first forays into batch were with MS-DOS 3.21 and a <a href="https://interviewquestions.tuteehub.com/tag/relatively-621723" style="font-weight:bold;" target="_blank" title="Click to know more about RELATIVELY">RELATIVELY</a> ancient book "running MS-DOS" which thankfully was "updated and revised to include the new MS-DOS 3.21!". I've later learned there are versions of the book for DOS 5 and 6 as well by the same author- revisions, I imagine.<br/><br/>After that, it was simply building upon what I already knew- shortly after I was able to get a copy of DOS 6, and I learned about the various new command switches; for example, dir, in DOS 3.21, only had the /w switch, so it was quite a lesson to learn how to sort a directory listing based on filename- iirc something like "dir | sort /+16" which sorted starting at the 16-th <a href="https://interviewquestions.tuteehub.com/tag/column-239247" style="font-weight:bold;" target="_blank" title="Click to know more about COLUMN">COLUMN</a>; but after they added the various /o (sorting) switches to DOS it became essentially a built-in feature. These new features were well documented in a small help program that DOS installed in C:\DOS- "help.exe" (or maybe it was help.com) whatever it was, it was a early text-based hypertext document that listed all the various commands and their syntax as well as config.sys commands (rather redundant today). Nowadays, as you noted, there are a lot of sites that are dedicated to documenting various batch tricks and tips. It still better to look through the actual /? help for each command though.  OK BC_Programmer: i guess their is no shortcut to it.<br/>             <a href="https://interviewquestions.tuteehub.com/tag/practice-248282" style="font-weight:bold;" target="_blank" title="Click to know more about PRACTICE">PRACTICE</a> and more practice is the only thing to get more acquainted with DOS and Batch.  It will take quite some time:</p></body></html>


Discussion

No Comment Found