English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am constantly running a program that executes through DOS. every time I start the program I have to input a huge command line.. Is there a shortcut for this?

2006-07-28 07:53:04 · 9 answers · asked by tattooz2 1 in Computers & Internet Programming & Design

9 answers

Press the up arrow.

Although technically that only works in the windows command shell, which isn't really DOS.

In proper DOS you'll need to have a program called "Doskey" loaded into memory, usually via your autoexec. This will then allow you to cycle through the commands with the up & down arrows, like in windows.

I'm showing my age here......

2006-07-28 07:56:14 · answer #1 · answered by Oli 3 · 3 0

Command Line Repeat Last Command

2016-12-10 06:52:09 · answer #2 · answered by england 4 · 0 0

It only works while the DOS window remains open but using the up arrow key will repeat the last command. But ONLY if it remains open, if it opens new each time type the command in a word or notepad file save it to your desktop.

When you start the program copy the command line from the notepad, open the dos window and click on the upper left corner of the window, go to edit and paste it in.

2006-07-28 07:57:47 · answer #3 · answered by malkier8567 3 · 0 0

NTFS and fat are the two demanding disk formats which supply countless issues. fat is used with residing house windows ninety 5/NT 3.0 and in the previous opearting platforms. you will only particularly use this in case you have one among those working platforms as this is a unfavourable format. fat is an acronym for 'report Allocation table' and there is likewise FAT32 that's used with later 32 bit working platforms. NTFS is an acronym for 'New technologies report equipment' and is definitely the prevalent with xp. It has further safety for records/folders, and likewise once you reproduction records to a hard disk drive, NTFS makes use of smaller chunks of area on the demanding disk, permitting greater records to be copied. It additionally facilitates compression and encryption. CHKDSK is a command you may run in restoration console/restore mode which actually exams the demanding disk for blunders. by using working chkdsk /f it additionally will attempt to repair any blunders on the disk, that's smart in case you're having boot issues of residing house windows because it may from time to time be sure the errors

2016-12-10 17:20:45 · answer #4 · answered by herzog 4 · 0 0

YES! You can use the FOR command.

About FOR Command:

FOR %%(variable) IN set DO (command)
or for interactive processing
FOR %%(variable) IN set DO (command)

Purpose: Performs repeated execution of commands (for both batch processing and interactive processing).

%% variable can be any character.

set can be one or more file specifications.

The %%variable is set sequentially to each of the set entries. Then the DOS command specified after the DO is carried out. Typically set will include wildcard characters (? and *) to indicate a group of filenames. Then, %%variable is set to each matching filename. You can also use path designations for set.

This command provides a way to repeat DOS commands in a predetermined way (usually to tell DOS to carry out a command on each of the files named in the set specifications).

Any character except 0 through 9 can be used for %%variable (to avoid confusion with the %0-%9 batch parameters).

Example
To TYPE (display) the contents of every file in the current directory that has the filename extension TXT, enter

for %%X in (*.txt) do type %%X

If the program finds files on the disk that have the TXT extension, the command sets %%X to each of the TXT files, then displays the contents of each file.

2006-07-28 07:56:37 · answer #5 · answered by HotRod 5 · 0 0

Create a batch file.
Open notepad,
type in your entire command line as you would in DOS
save as "filename.bat"
Replace filename with anything you want IE: runnow.bat.
Then when you open a dos window,(make sure you are in the directory with that file) then jusst type runnow and hit enter
it will runn it for you.
Even easier, just double click on the file in windows and it will open a quick dos shell, run it, then close

This is also from memory, but I think I got it right

2006-07-28 08:04:57 · answer #6 · answered by Just Bored!! 5 · 0 0

ok first of all theres a utility called DOSKey that lets you use the arrow keys and stuff LIKE tab completion (not sure if tab completeion itself is actually included), or you could check out other dos-types as in NDOS (Norton's Dos replacement) or 4DOS (both of which were based around having addon utils for various reasons)... feel free to browse for these programs/utilities (I think DOSkey is included in many versions of MS-DOS after v3.3)

2006-07-28 08:00:49 · answer #7 · answered by ForgeAus 3 · 0 0

first enable "doskey" by typing doskey at the command prompt and hit enter. then just use the up and down arrow keys to autotype the previous commands

process ;

c:> Doskey [Enter]
Doskey Enabled
c:> [ now use up and down arrow keys ]

Voila !

2006-07-28 08:04:15 · answer #8 · answered by helpisontheway 2 · 0 0

usually you can press up. Some versions of dos you need to press F3, though.

2006-07-28 08:16:29 · answer #9 · answered by John J 6 · 0 0

fedest.com, questions and answers