All Questions
8
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 ...
1
vote
1
answer
175
views
How to discover the page code to show a specific character in MSDOS/Batch?
I made a batch-file snake game and inserted some special characters via HEX to ANSI conversion in Notepad++.
It worked normally. But I noticed that there was an update to the Consolas font and two of ...
3
votes
2
answers
1k
views
batch file put if inside for loop error
I have a working for loop to print all zip file's name under one working directory:
@echo off
setlocal
for %%i in (*.zip) do (
echo %%i
)
I have another working if block to check and print ...
1
vote
2
answers
2k
views
Running file from batch file
I am working in Windows 10.
This is my code saved in .bat file:
%windir%\System32\cmd.exe "/K" C:\Users\Alex\AppData\Local\Continuum\anaconda3\Scripts\activate.bat C:\Users\Alex\AppData\Local\...
0
votes
1
answer
840
views
How can I check if a file starting with a letter is in the folder?
Why does this script always return "A" even when there are no files starting with A in the folder, but there being files starting with B and C?
@ECHO OFF
if exist %cd%\a* goto A
if exist %cd%\b* ...
3
votes
3
answers
2k
views
Substring a variable with two percent in a .bat file
I faced a problem trying to implement a .bat file and I didn't find an answer.
I try to display all folder names without the system path.
I've tried something like that but it doesn't work.
@echo ...
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% ==...
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 = ...