Search found 511 matches
- 29 Jan 2024 06:28
- Forum: DOS Batch Forum
- Topic: is there a DOS command for running a program with windows 98 compatibility?
- Replies: 11
- Views: 11145
Re: is there a DOS command for running a program with windows 98 compatibility?
isnt compatibility layer set by __COMPAT_LAYER variable? -> https://stackoverflow.com/questions/378 ... ctually-do . Though this not work so well ... Can be set also through a shortcut settings.
- 21 Dec 2023 11:42
- Forum: DOS Batch Forum
- Topic: Why for loop wmic get processid return an extra invalid value?
- Replies: 3
- Views: 5156
Re: Why for loop wmic get processid return an extra invalid value?
I think I saw you asking the same question in SO and suggested in a comment to check this thread:-> https://www.dostips.com/forum/viewtopic.php?t=4266 wmic sets an extra CR at the end which messes the output. But can be stripped with additional for loop: for /f "usebackq skip=1 delims=" %%a in ( `wm...
- 19 Jul 2023 12:06
- Forum: DOS Batch Forum
- Topic: Deleting files with sending them to Recycle Bin [SOLVED]
- Replies: 8
- Views: 3940
Re: Deleting but with sending items to Recycle Bin
try this: https://github.com/npocmaka/batch.scripts/blob/master/hybrids/jscript/deleteJS.bat What does the present in it "Usage (prints with default printer a file if possible)" suppose to have anything to do with deletion of items and Recycle Bin ? There's a CLI program called binit that sends thi...
- 19 Jul 2023 02:39
- Forum: DOS Batch Forum
- Topic: Deleting files with sending them to Recycle Bin [SOLVED]
- Replies: 8
- Views: 3940
- 02 Jul 2023 16:04
- Forum: DOS Batch Forum
- Topic: How to escape comma in wmic?
- Replies: 10
- Views: 4737
Re: How to escape comma in wmic?
At the moment I'm using macbook (it's atrocious) and I cannot test it. Though for the where clause the escape symbol is backslash but I'm not sure if this will work for call but you can try it.
- 14 Oct 2022 03:09
- Forum: DOS Batch Forum
- Topic: Complete control of cmd windows
- Replies: 88
- Views: 66727
Re: Complete control of cmd windows
Another approach could be a creation of lnk file and editing the ConsoleaDataBlock : https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-shllink/e6b432b4-5a49-4826-9c25-e28695e8dd0c - it requires binary editing of that block. Here's an old C# hybrid that tickles the quick edit mode - ht...
- 20 Sep 2022 14:49
- Forum: DOS Batch Forum
- Topic: Lunar Lander in the copy dialog
- Replies: 1
- Views: 2269
Lunar Lander in the copy dialog
https://github.com/Sanakan8472/copy-dialog-lunar-lander - that's mad.. (to play it you need an SSD)
- 07 Mar 2022 10:17
- Forum: DOS Batch Forum
- Topic: progress bar while copying (xcopy)
- Replies: 4
- Views: 9322
Re: progress bar while copying (xcopy)
for (big) single files
can be used.
Code: Select all
esentutl /y "FILE.EXT" /d "DEST.EXT" /o
- 18 Aug 2021 04:43
- Forum: DOS Batch Forum
- Topic: DOS batch file or something else?
- Replies: 2
- Views: 3439
Re: DOS batch file or something else?
Check this
https://github.com/npocmaka/batch.scrip ... ipInfo.bat
With passing the number for the rating you can get the rating
https://github.com/npocmaka/batch.scrip ... ipInfo.bat
With passing the number for the rating you can get the rating
- 27 May 2021 14:18
- Forum: DOS Batch Forum
- Topic: For /F to process multiple lines
- Replies: 2
- Views: 3363
Re: For /F to process multiple lines
you havent defined the tokens you want to get.
try with
tokens option will assign the string before the first `:` to the %%G and everything else to the %%H
try with
Code: Select all
For /F "tokens=1* delims=:" %%G in (
'systeminfo'
) do (
set "%%G=%%H"
)
- 27 May 2021 14:14
- Forum: DOS Batch Forum
- Topic: package manager
- Replies: 2
- Views: 3743
Re: package manager
Package Manager:packagemgr.jpg (Sorry, couldn't resist. I mean, wow, this is certainly the most minimalistic post I've ever seen on DosTips. Would you mind to at least leave one sentence what you get if you follow the link and why it's worth to check this out? Thanks! Steffen)[ /size] npm for node ...
- 27 May 2021 01:10
- Forum: DOS Batch Forum
- Topic: package manager
- Replies: 2
- Views: 3743
- 11 Feb 2021 15:27
- Forum: DOS Batch Forum
- Topic: Playing a .wav file in the background
- Replies: 4
- Views: 7010
- 08 Nov 2020 09:13
- Forum: DOS Batch Forum
- Topic: batch file PID
- Replies: 6
- Views: 6781
Re: batch file PID
https://github.com/npocmaka/batch.scrip ... CmdPID.bat - you can try with this. It saves the PID to the errorlevel
- 02 Nov 2020 04:11
- Forum: DOS Batch Forum
- Topic: Nesting statement if ()==() ( ) gives an error
- Replies: 2
- Views: 4465
Re: Nesting statement if ()==() ( ) gives an error
One of your closing brackets is actually an opening one. Try like this: @ECHO OFF IF (c)==(c) ( echo test IF "(b)"=="(b)" ( echo yes ) ) the closing bracket in the nested if compared strings is taken for a closing bracket of the outer if. May be this example will be more descriptive: IF (c)==(c) ( I...