Search found 516 matches

by npocmaka_
18 Nov 2024 08:45
Forum: DOS Batch Forum
Topic: pcalua command line options.
Replies: 0
Views: 11877

pcalua command line options.

pcalua is part of "Program Compatibility Assistant" and as I understand its work - it checks pcalua.pdb in order to apply shims , start the program and then release it. To check/edit the compatibility db you need the compatibility administrator which on MS page leads to a dead link and I don't know ...
by npocmaka_
18 Nov 2024 08:43
Forum: DOS Batch Forum
Topic: UNZIP anywhere in 200 bytes, embedded (XP and onwards)
Replies: 1
Views: 10141

Re: UNZIP anywhere in 200 bytes, embedded (XP and onwards)

You might be interested in this: https://github.com/npocmaka/batch.scrip ... /zipjs.bat - a script that uses windows capabilities to zip/unzip files and I've wrote long ago.
by npocmaka_
06 Aug 2024 02:08
Forum: DOS Batch Forum
Topic: Looks like dostips is extensively on AI training?
Replies: 1
Views: 20952

Looks like dostips is extensively on AI training?

I think there's a spike in the views even on the newer threads here - even on the newest topics ,despite the niche and obscure thing that the batch scripting is. https://i.imgur.com/wg7H20X.png I see increase also in the SS64 forums ,but not so big. My guess they are using the data here on AI traini...
by npocmaka_
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: 25813

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

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: 13383

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: 11885

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: 16067

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: 112248

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: 4295

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: 15740

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: 6081

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: 6029

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