Search found 494 matches

by npocmaka_
24 May 2018 13:05
Forum: DOS Batch Forum
Topic: BAT to Check shortcut links work and allow quick editting?
Replies: 5
Views: 1725

Re: BAT to Check shortcut links work and allow quick editting?

ok.

I thought that the help message is descriptive enough.
by npocmaka_
24 May 2018 08:48
Forum: DOS Batch Forum
Topic: BAT to Check shortcut links work and allow quick editting?
Replies: 5
Views: 1725

Re: BAT to Check shortcut links work and allow quick editting?

Try with shortcutjs.bat May be something like: for %%a in "tokens=1* delims=:" %%a in ('shortcutjs.bat -examine "some.lnk"^|find /i "Target:"') do ( if not exist "%%~fb" echo target does not exist if not exist "%%~dp" echo target directory does not exist if exist "%%~fb" echo looks ok? )
by npocmaka_
19 May 2018 19:35
Forum: DOS Batch Forum
Topic: Any other bat to exe converters/wrappers?
Replies: 11
Views: 3480

Re: Any other bat to exe converters/wrappers?

https://stackoverflow.com/questions/281 ... arty-tools

But there's now way to have the same performance as a pure bat file.
by npocmaka_
02 May 2018 05:53
Forum: DOS Batch Forum
Topic: Win 10 Startup Batchfile doesn't work
Replies: 1
Views: 957

Re: Win 10 Startup Batchfile doesn't work

use SCHTASKS:

Code: Select all

SCHTASKS /Create /SC ONLOGON  /TN TASK_NAME  /TR "C:\some.bat" /RU %USERNAME%  /F /RL HIGHEST
or

Code: Select all

SCHTASKS /Create /SC ONSTART  /TN TASK_NAME  /TR "C:\some.bat" /RU %USERNAME%  /F /RL HIGHEST
though to create the task you'll need a console session with admin privileges.
by npocmaka_
02 May 2018 01:38
Forum: DOS Batch Forum
Topic: [Info] Saving current codepage
Replies: 13
Views: 4249

Re: [Info] Saving current codepage

what about mode command?
Itс results are aligned In columns and eventually you'll be able to get the code page using a substring and numbers.
by npocmaka_
26 Apr 2018 06:07
Forum: DOS Batch Forum
Topic: more tricks with certutil
Replies: 10
Views: 6315

more tricks with certutil

Here the SO user showed me a not so well documented additional switch of the certutil -encodehex. So you can pass an additional number as a format flag. Here they are: certutil -encodehex -f strings64.exe strings12.hex 12 - one line HEX value without spaces , columns ,addresses certutil -encodehex ...
by npocmaka_
13 Apr 2018 01:37
Forum: DOS Batch Forum
Topic: you can download files with certutil
Replies: 9
Views: 20229

Re: you can download files with certutil

miskox wrote:
13 Apr 2018 00:19
Update:

target folders must exist (the same goes for BITS).

Saso
But unlike bitsadmin works with relative paths.
by npocmaka_
09 Apr 2018 10:14
Forum: DOS Batch Forum
Topic: you can download files with certutil
Replies: 9
Views: 20229

you can download files with certutil

https://groups.google.com/forum/#!topic ... %5B1-25%5D

Code: Select all

certutil.exe -urlcache -split -f "https://download.sysinternals.com/files/PSTools.zip" pstools.zip
by npocmaka_
12 Mar 2018 10:50
Forum: DOS Batch Forum
Topic: How to create links in automatic?
Replies: 8
Views: 2936

Re: How to create links in automatic?

check this : https://github.com/npocmaka/batch.scrip ... tcutJS.bat
I hope the help message is descriptive enough.Besides the standard functionality the linked tool also can turn the 'Run As Administrator' on and off.
by npocmaka_
20 Feb 2018 06:10
Forum: DOS Batch Forum
Topic: reverse string without goto
Replies: 4
Views: 3569

Re: reverse string without goto

Here's my attempt (it uses strlen macro): :reverse [%1 - string to reverse ; %2 - if defined will store the result in variable with same name] @echo off setlocal disableDelayedExpansion set "str=%~1" set LF=^ rem ** Two empty lines are required set ^"\n=^^^%LF%%LF%^%LF%%LF%^^" set $strLen=for /L %%n...
by npocmaka_
16 Feb 2018 15:54
Forum: DOS Batch Forum
Topic: Why REM inside a block?
Replies: 14
Views: 4680

Re: Why REM inside a block?

color behaves strangely with this script at least on my machine: Normal -------------------------------- 53780 ms color 1550 ms cd . 1590 ms ver >nul 1280 ms date /t >nul 1270 ms time /t >nul 1250 ms verify >nul 670 ms call; 690 ms (call ) 530 ms (call) stdout already redirected to nul -------------...
by npocmaka_
16 Feb 2018 07:52
Forum: DOS Batch Forum
Topic: Why REM inside a block?
Replies: 14
Views: 4680

Re: Why REM inside a block?

Perhaps that was the intent, but it does not work that way. REM never sets the ERRORLEVEL - the value that existed before the remark is preserved. It should not be an issue for that code because the only other command in the block is ECHO, which also preserves the ERRORLEVEL. If you ever need to ex...