Search found 512 matches
- 20 May 2024 06:35
- Forum: DOS Batch Forum
- Topic: dir ????????.txt does not show only files with length of 8 characters
- Replies: 7
- Views: 281
Re: dir ????????.txt does not show only files with length of 8 characters
By default 8.3 notation is turned on Windows and all files have two names the short one and the real one. -> https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/18e63b13-ba43-4f5f-a5b7-11e871b71f14 with dir /x and dir /n you can list short names or long names respectively. Eventual...
- 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: 11459
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: 5205
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: 3975
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: 3975
- 02 Jul 2023 16:04
- Forum: DOS Batch Forum
- Topic: How to escape comma in wmic?
- Replies: 10
- Views: 4772
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: 66892
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: 2278
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: 9369
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: 3448
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: 3374
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: 3760
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: 3760
- 11 Feb 2021 15:27
- Forum: DOS Batch Forum
- Topic: Playing a .wav file in the background
- Replies: 4
- Views: 7030
- 08 Nov 2020 09:13
- Forum: DOS Batch Forum
- Topic: batch file PID
- Replies: 6
- Views: 6797
Re: batch file PID
https://github.com/npocmaka/batch.scrip ... CmdPID.bat - you can try with this. It saves the PID to the errorlevel