Skip to main content

Questions tagged [windows-batch]

0 votes
1 answer
111 views

How to kill process based on arguments used to initiallize it on Windows

On my Windows 10 I started Chrome with this command line "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir="C:\perfil-chrome-automatizacao" Now I need ...
Sitepor500.com.br's user avatar
0 votes
1 answer
1k views

How to append into next line in Windows batch file

I am using a windows batch file that will output a .js file into csv. The .js file is a mongo query. mongosh --host 10.1.0.1:27017 --username "username" --password "password" --...
JRA's user avatar
  • 13
0 votes
1 answer
744 views

How can I redirect the output of one command in a batch file?

Edit: This question has been answered, please scroll down ⬇️ This question is related to Server Fault because I am automating minifying some web files before deploying them to my server. So I have a ...
HackerDaGreat57's user avatar
0 votes
1 answer
2k views

Exit safe mode remotely

I rebooted a Windows 10 machine into 'Safe Mode with Networking'. It is a physical machine that resides on-site (at a remote location) and does not have ILO (or similar features). I need to exit from ...
Abhishek Ray's user avatar
0 votes
1 answer
50 views

windows bat needs to determine the version of the msql odbc library

Hi I need to build a bat possible power shell on standard windows 10 instance. I need a programmatic way to set an environment variable with the version string of the latest msodbcsql library at ...
peter cooke's user avatar
0 votes
2 answers
2k views

Delete all folders on all drives with "foo" OR "bar" in the folder name with batchfile

I am trying to delete all folders on all drives with the above naming pattern, however only on the first folder level, i.e directly below the drive letter, like for example: F:\this folder's name ...
David.P's user avatar
  • 119
0 votes
1 answer
4k views

Windows Batch: Command FOR /F and Tokens, How can I ser variable from token X until end of the line?

Ok, I been struggling with this for days now. I have a little complex script but at the end I just need to set a variable from a Token 4 to the end of the line. Basically I run a command and the ...
DefToneR's user avatar
  • 577