How to Add a Command to DOS
Learn from our various Guides, plus check out our FAQ's and How To's. There is something for everyone. Share what you know and add to the collection.

Moderators: Management, Forum Experts

How to Add a Command to DOS

Postby gries818 on Sat Apr 15, 2006 3:56 pm

I use Unix more the DOS and so when I use DOS I find myself typing Unix commands. Clear was the worst for me. I would always type clear instead of cls. So you can add some Unix commands to DOS by following the steps below.

1. Go to the System 32 folder in C:\Windows.
2. Make a batch file with the name of the Command you want (such as clear).
3. Inside the batch file type the equivent DOS command(s).
4. Save and exit.

Now you should be able to excute this new batch file no matter where you are in DOS just by typing the name of the Batch File.

I also think you could make applications that could have the same functions. Just put them in the System 32 folder. I however reccommend not deleting any files in this folder because its crucial to Windows operation.
User avatar
gries818
Support Team
 
Posts: 6022
Joined: Wed Jul 07, 2004 2:28 pm

Postby SCgone on Sat Apr 15, 2006 5:03 pm

That's why I've used 4dos and 4nt for years. I like the command prompt and if 4dos doesn't have it, you can set an alias for any command you like.
SCgone
PRO ELITE
PRO ELITE
 
Posts: 12847
Joined: Thu Mar 14, 2002 7:59 pm
Location: South Carolina, USA


Return to Guides and How To

Who is online

Users browsing this forum: No registered users and 0 guests