Skip to main content

All Questions

Tagged with
1 vote
1 answer
361 views

Loop n-times on DOS 6.22

FOR /L %%parameter IN (start,step,end) DO command does not work on DOS 6.22. The /L argument to loop through a set of numbers is not available in DOS 6.22. FOR in DOS 6.22 can merely loop through a ...
porg's user avatar
  • 389
-1 votes
1 answer
2k views

Batch script to merge files using copy command in numerical order

Would appreciate it if anyone can help me with this request. I need a dynamic batch script which can do the below command for ANY number of files: Copy 1.txt + 2.txt + 3.txt + 4.txt newfile.txt If ...
binaryfinary's user avatar
0 votes
1 answer
794 views

Appending an extension to a new file created with xcopy

I've been having problems with xcopy in the past few days, and I'd like to stop ripping out my hair. In my DOS class, a portion of an assignment requires a file to be copied (with xcopy), and the new ...
Herpeslurpee's user avatar
0 votes
1 answer
430 views

Is it possible to filter attribute of dos command output?

Below is output of this command netsh interface ipv4 show interface Idx      Met     MTU         &...
user2090820's user avatar
0 votes
1 answer
884 views

run all batch scripts in all subdirectories

I want to run all x.bat automatically in all recursive sub directories: C:\test | +---folder1 | x.bat | +---folder2 | x.bat | +---folder3 . x.bat . .----foldern ...
Jmv Jmv's user avatar
  • 31
0 votes
1 answer
43 views

Check if an user has given as an input 1 or more then 1 in an batch file

I am having an question with an Batch file Is it possible to let an user choose how many files it will enter? For example set /p count=Enter the number of files you are willing to set: IF %count% ==...
Thomas de Vries's user avatar
2 votes
2 answers
9k views

Use Batch findstr for files with whitespaces

I'm trying to search for a string in a given file. This file can have whitespaces in its name and I'm having trouble with the Batch file. I can easily do this by console getting the correct results: ...
Alvaro's user avatar
  • 157
1 vote
3 answers
199 views

Variable Assignment for arguments with a for loop [closed]

Alright, so, I've searched quite a bit on how to do this but I've given up as I simply couldn't find anything. So, I have a code (below); it's main purpose is to get 9 arguments and assign them as a ...
Jared Allard's user avatar
0 votes
1 answer
268 views

Find the character in line?

I am trying to find the some character in file using find or findstr, for example file contents like: "/test/abctest/abci.txt = c:\abctest\tst\work\workt.txt;abc_test1" "/test/abctest/abci.txt = ...
user202968's user avatar
0 votes
2 answers
16k views

Windows command to perform a similar function to spool command in SQL or Script command in UNIX?

In DOS is there a command to perform a similar spool function in SQL or Script command in UNIX to create a log? I want to print all command line output to a file but I don't want to use the echo ...
dave's user avatar
  • 121
5 votes
2 answers
10k views

taskkill - end tasks with window titles ending with a specific string

I need to write a batch program to end all MS office communicator tasks with window titles (usually ending with pattern "- Conversation" . I tried taskkill /FI "WINDOWTITLE eq *Conversation" /IM ...
dbza's user avatar
  • 510
1 vote
2 answers
4k views

Run SOX batch on files in a relative folder

I have a windows batch script that runs a SOX command on various files, but I don't know how to get the batch to run on files in a relative path to that of the SOX executable. Currently all the files ...
Matteo Cuellar Vega's user avatar
3 votes
6 answers
28k views

How to list all files on all hard drives with output in MS-DOS batch?

How can I list all files (including system and hidden) on all hard drives (not removable drives)? I think in something like a: dir -a -h *.* /s > file.txt but this is for the specific drive ...
Leandro Bardelli's user avatar
5 votes
2 answers
46k views

How to input automatically in BATch file on DOS?

I want to run a command that prompt for an argument, can I do a BATch file that run this command and then wait for a sec and "write" or "type" automatically (like a live person) the argument? Thanks.
Leandro Bardelli's user avatar

15 30 50 per page
1
2