Search found 511 matches

by npocmaka_
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: 7000

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.
by npocmaka_
21 Dec 2023 11:42
Forum: DOS Batch Forum
Topic: Why for loop wmic get processid return an extra invalid value?
Replies: 3
Views: 2894

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...
by npocmaka_
19 Jul 2023 12:06
Forum: DOS Batch Forum
Topic: Deleting files with sending them to Recycle Bin [SOLVED]
Replies: 8
Views: 3034

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...
by npocmaka_
02 Jul 2023 16:04
Forum: DOS Batch Forum
Topic: How to escape comma in wmic?
Replies: 10
Views: 3700

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.
by npocmaka_
14 Oct 2022 03:09
Forum: DOS Batch Forum
Topic: Complete control of cmd windows
Replies: 88
Views: 55635

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...
by npocmaka_
20 Sep 2022 14:49
Forum: DOS Batch Forum
Topic: Lunar Lander in the copy dialog
Replies: 1
Views: 1921

Lunar Lander in the copy dialog

https://github.com/Sanakan8472/copy-dialog-lunar-lander - that's mad.. (to play it you need an SSD)
by npocmaka_
07 Mar 2022 10:17
Forum: DOS Batch Forum
Topic: progress bar while copying (xcopy)
Replies: 4
Views: 8415

Re: progress bar while copying (xcopy)

for (big) single files

Code: Select all

esentutl /y "FILE.EXT" /d "DEST.EXT" /o
can be used.
by npocmaka_
18 Aug 2021 04:43
Forum: DOS Batch Forum
Topic: DOS batch file or something else?
Replies: 2
Views: 3109

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
by npocmaka_
27 May 2021 14:18
Forum: DOS Batch Forum
Topic: For /F to process multiple lines
Replies: 2
Views: 3081

Re: For /F to process multiple lines

you havent defined the tokens you want to get.

try with

Code: Select all

For /F "tokens=1* delims=:" %%G in (
  'systeminfo'
) do (
  set "%%G=%%H"
)

tokens option will assign the string before the first `:` to the %%G and everything else to the %%H
by npocmaka_
27 May 2021 14:14
Forum: DOS Batch Forum
Topic: package manager
Replies: 2
Views: 3347

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 ...
by npocmaka_
08 Nov 2020 09:13
Forum: DOS Batch Forum
Topic: batch file PID
Replies: 6
Views: 6341

Re: batch file PID

https://github.com/npocmaka/batch.scrip ... CmdPID.bat - you can try with this. It saves the PID to the errorlevel
by npocmaka_
02 Nov 2020 04:11
Forum: DOS Batch Forum
Topic: Nesting statement if ()==() ( ) gives an error
Replies: 2
Views: 4160

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...