Search found 481 matches

by npocmaka_
01 Aug 2018 01:17
Forum: DOS Batch Forum
Topic: Reading a hidden password via a FINDSTR bug
Replies: 10
Views: 2618

Re: Reading a hidden password via a FINDSTR bug

Cool :!:

Works on windows 10 too.
by npocmaka_
14 Jul 2018 15:09
Forum: DOS Batch Forum
Topic: dir *3*.* does not work as expected
Replies: 3
Views: 1064

Re: dir *3*.* does not work as expected

It checks also the short file names.
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: 1152

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

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

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

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

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: 9
Views: 3118

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

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

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

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

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