All Questions
9
questions
1
vote
1
answer
557
views
DOS batch file to display netsh channel output
I'm trying to get wifi Channel output from netsh command to be 2.4GHz or 5GHz
The following provides me with Channel output:
netsh wlan show interface name=Wi-Fi | findstr "Channel"
Output ...
0
votes
1
answer
38
views
Writing out to a file based off of the output of the command
I have seen many examples of how to create a file through command line using a static name but I need to get it to show a dynamic name based off of my commands output. What I mean by this is the ...
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 ...
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 &...
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:
...
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 ...
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 ...
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 ...
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.