Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.
The legend of DOS?
|
|||||||
![]() |
| Thread Tools |
|
#1
|
|||
|
|||
|
The legend of DOS?
I need to make a Batch file that changed directories apon typing G, B, V, and K. So essentially [if I am correct, G. Bat B Bat.V Bat. K. Bat. Ultimatly this is supposed to start solitaire...any tips or suggestions would be greatly apreciated...
|
|
#2
|
|||
|
|||
|
ok i realize chdir changes directories....but to make a batch file that changes directories apon typing G.bat etc?
|
|
|
|
#3
|
||||
|
||||
|
That is a bit confusing.
If you were going to change directorys, you would have to specify what directory your changing to using either "cd <directory>", "cd..", etc. The batch file would have to be in the correct directory for that to work too (but a cd.. command would work regardless of where you are. it just wouldnt take you anywhere if you werent under a sub-folder). Explain in a bit more detail exactly what your trying to do. |
|
#4
|
|||
|
|||
|
ok I have a assignment in which I am to create a batch file that changes directories apon typing G.Bat , B.Bat V.Bat and K.Bat...
It is to start the game solitire......thats it...as it is written by the teacher... |
|
#5
|
||||
|
||||
|
Change directories to where? Randomly change directories? Why 4 batch files? Are they supposed to do different things? Should there be command line arguments?
|
|
#6
|
|||
|
|||
|
To make a batchfile to go to the G-drive, where (for argument's sake) Solitaire would be in Directory Games and Subdirectory Solitaire, you create a batchfile G.BAT as follows:
Open Notepad and type in the following instructions, each on a separate line. g: cd \games\solitaire solitaire.exe (or whatever the game's programname is) cd \ c: Now click on File/Save as and browse to the root of the C-drive where you save it under the name G with the extension BAT That is all. Last edited by realblackstuff; 02-19-2004 at 05:19 AM. |
|
#7
|
|||
|
|||
|
k thank u all...on that note...any recomended sights to learn bout.."the legend of DOS"?
|
|
|
|
#8
|
|||
|
|||
|
Start with the basics from here:
http://www.pccomputernotes.com/opera.../osintro01.htm Then use Google and set up a search for anything else you want to know. |
|
#9
|
||||
|
||||
|
FYI
A great book for Dos training and reference if your like me and use dos but infrequently. Carolyn Z Gillay & Bette A. Peat , Franklin,Beadle & Associates Windows 2000 Pro Command Line Also check for her latest Command Line release because it updates for Win XP some command changes in use, etc. |
![]() |
| Thread Tools | |
|
| Similar Topics | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HOW TO: Install Windows 2000 (or XP perhaps) from DOS without a bootable CDROM | Rick | Windows OS | 28 | 03-30-2008 10:30 PM |
| Where can I download a SCANDISK program for DOS? | identityless | Windows OS | 6 | 01-11-2005 07:01 AM |
| DOS question | daedalus | Windows OS | 7 | 12-16-2003 01:23 AM |
| win xp dos? | scopexmoh | Windows OS | 4 | 10-18-2003 11:59 AM |
| How do I create an dos bio flash floppy? ^ | Condor | CPUs, Chipsets and Mobos | 8 | 09-16-2003 07:48 AM |
All times are GMT -4. The time now is 06:27 AM.



