Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.

Go Back   TechSpot OpenBoards > OS & Software > Misc. Software & Utilities

The legend of DOS?

Reply
Bookmark / Share this page
Thread Tools
  #1  
Old 02-18-2004
Newcomer, in training
 
Member since: Feb 2004, 11 posts
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...
Reply With Quote
  #2  
Old 02-18-2004
Newcomer, in training
 
Member since: Feb 2004, 11 posts
ok i realize chdir changes directories....but to make a batch file that changes directories apon typing G.bat etc?
Reply With Quote
You can remove this banner by registering, join the TS Community for free.
  #3  
Old 02-18-2004
acidosmosis's Avatar
TechSpot Chancellor
 
Location: Shelby, NC
Member since: Jan 2003, 1,571 posts
System specs
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.
Reply With Quote
  #4  
Old 02-18-2004
Newcomer, in training
 
Member since: Feb 2004, 11 posts
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...
Reply With Quote
  #5  
Old 02-19-2004
Nodsu's Avatar
TS Special Forces
 
Location: Estonia
Member since: Feb 2002, 9,430 posts
System specs
Change directories to where? Randomly change directories? Why 4 batch files? Are they supposed to do different things? Should there be command line arguments?
Reply With Quote
  #6  
Old 02-19-2004
TechSpot Evangelist
 
Location: has left the building
Member since: Aug 2003, 8,160 posts
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.
Reply With Quote
  #7  
Old 02-19-2004
Newcomer, in training
 
Member since: Feb 2004, 11 posts
k thank u all...on that note...any recomended sights to learn bout.."the legend of DOS"?
Reply With Quote
You can remove this banner by registering, join the TS Community for free.
  #8  
Old 02-20-2004
TechSpot Evangelist
 
Location: has left the building
Member since: Aug 2003, 8,160 posts
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.
Reply With Quote
  #9  
Old 02-20-2004
Liquidlen's Avatar
TechSpot Paladin
 
Location: Canada
Member since: Oct 2003, 1,646 posts
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.
Reply With Quote
Reply
Thread Tools

Forum Jump

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.