Search found 131 matches
- 02 Sep 2025 06:07
- Forum: DOS Batch Forum
- Topic: Format totals with thousands separator and convert bytes to megabytes
- Replies: 4
- Views: 256
Re: Format totals with thousands separator and convert bytes to megabytes
you may start here https://stackoverflow.com/questions/561 ... batch-on-c
- 30 Aug 2025 04:06
- Forum: DOS Batch Forum
- Topic: i am looking for a batch command choice.com for WinXP
- Replies: 3
- Views: 204
Re: i am looking for a batch command choice.com for WinXP
As far as I may remember, there's a Xp choice compatible version in the Win Server 2003 SDK
- 30 Aug 2025 04:00
- Forum: DOS Batch Forum
- Topic: how can i get ansi.sys loaded in WinXP?
- Replies: 2
- Views: 241
Re: how can i get ansi.sys loaded in WinXP?
If you don't feel uncomfortable with installing third partly tools, take a look at this viewtopic.php?f=3&t=9156&p=59769#p59769
- 25 May 2022 15:10
- Forum: DOS Batch Forum
- Topic: Batch running files remotely
- Replies: 5
- Views: 11320
Re: Batch running files remotely
you may try
Code: Select all
wmic /node:"some_computer" proccess call create "c:\\path_to_proccess\\your.exe
- 02 Mar 2022 15:55
- Forum: DOS Batch Forum
- Topic: Fail at set batch with Admin Rights and put the computer at Domain
- Replies: 2
- Views: 5533
Re: Fail at set batch with Admin Rights and put the computer at Domain
some thoughts first, as you’ve stated, your script opens multiple windows, what is your script name? it’s trying to call/use some command with the same name? also, you must add computers to trusted server list, in order to use remote admin using wmi or powershell (this last not sure, but the first i...
- 30 Sep 2021 11:33
- Forum: DOS Batch Forum
- Topic: How to get READONLY Status for Current disk drive (usb) - like diskpart/attr disk
- Replies: 15
- Views: 21839
Re: How to get READONLY Status for Current disk drive (usb) - like diskpart/attr disk
can anyone test if viewtopic.php?p=49172#p49201 change the fsutil behaviour? I don’t have access to a win machine
- 13 Jan 2021 11:24
- Forum: DOS Batch Forum
- Topic: Need help running imagemagick command over many files
- Replies: 9
- Views: 14335
Re: Need help running imagemagick command over many files
well, if you run from explorer, then place in front of inside your script, so
Code: Select all
1>nul
Code: Select all
convert "%~1" -resize 300 "%output_name%"
Code: Select all
@echo off
...
...
1>nul convert "%~1" -resize 300 "%output_name%"
...
...
- 13 Jan 2021 09:29
- Forum: DOS Batch Forum
- Topic: Need help running imagemagick command over many files
- Replies: 9
- Views: 14335
Re: Need help running imagemagick command over many files
did you try where scriptname is you actual script?
Code: Select all
1>nul scriptname input.jpg -resize 300 output.jpg
- 13 Jan 2021 05:03
- Forum: DOS Batch Forum
- Topic: Need help running imagemagick command over many files
- Replies: 9
- Views: 14335
Re: Need help running imagemagick command over many files
you may run your script this will suppres any normal output while errors should be displayed
Code: Select all
1>nul convert input.jpg -resize 300 output.jpg
- 28 Sep 2020 03:34
- Forum: DOS Batch Forum
- Topic: How to remove Quotes from a variable with "ampersand" (&) ?
- Replies: 1
- Views: 4761
Re: How to remove Quotes from a variable with "ampersand" (&) ?
you can use a for loop to remove quotes with the ~ modifier. see for /? for further information.
Code: Select all
for %%a in (%dir%) do echo %%~a
- 17 Sep 2020 03:41
- Forum: DOS Batch Forum
- Topic: How to pass "chcp 1252" command to START "" /B /WAIT program?
- Replies: 4
- Views: 9128
Re: How to pass "chcp 1252" command to START "" /B /WAIT program?
have you tried
Code: Select all
start "" /NORMAL /B /WAIT ">nul chcp 1252 & D:\foobar\myprog.exe /parm1 /parm2 someparm”
- 28 Aug 2020 08:26
- Forum: DOS Batch Forum
- Topic: SerialPort copy string instead of file
- Replies: 5
- Views: 8545
Re: SerialPort copy string instead of file
have you tried or the diference here is that first writes hello plus CR+LF, and the second one does not.
Code: Select all
echo hello>COM3
Code: Select all
set /p str=“hello" <nul >\\.\COM3
- 20 Jul 2020 04:07
- Forum: DOS Batch Forum
- Topic: Printing both double-sided and single-sided with the same .cmd scipt
- Replies: 3
- Views: 6284
- 05 May 2020 14:37
- Forum: DOS Batch Forum
- Topic: Depicus wake on lan batch file question
- Replies: 3
- Views: 7408
Re: Depicus wake on lan batch file question
that's what pause command does, wait for user to press a key. simply change to to wait two seconds
Code: Select all
pause
Code: Select all
timeout /t 2
- 20 Apr 2020 09:11
- Forum: DOS Batch Forum
- Topic: How to disable Avast until reboot
- Replies: 7
- Views: 10377
Re: How to disable Avast until reboot
aren't those procceses (or at least one of them) services?
in that case you need
or
in that case you need
Code: Select all
sc stop ""ServiceName"
Code: Select all
net stop "ServiceName"