Search found 62 matches

by lazna
12 Jun 2024 09:33
Forum: DOS Batch Forum
Topic: plus sign in file name
Replies: 4
Views: 1726

Re: plus sign in file name

Not a known issue per se, but a known and expected behavior. This is the very last sentence of copy /? - To append files, specify a single file for destination, but multiple files for source (using wildcards or file1+file2+file3 format). Like all other special characters, you'll have to wrap the fi...
by lazna
12 Jun 2024 03:57
Forum: DOS Batch Forum
Topic: plus sign in file name
Replies: 4
Views: 1726

plus sign in file name

Copying some binaries from one directory to another utilizing 'copy' command, but facing issues when filename contain plus sign (in my case libstdc++-6.dll) and is not doublequoted. Probably the copy command misinterprete it as a file combining operation. Searching for any description about this iss...
by lazna
07 Jun 2024 01:44
Forum: DOS Batch Forum
Topic: Cmdwiz - 54 operation cmd helper tool (now with Unicode)
Replies: 65
Views: 134770

Re: Cmdwiz - 54 operation cmd helper tool (now with Unicode)

It's not my utility, so without seeing the source code, I can only make more or less educated guesses. Therefore I can't say for sure that, what you described above, is caused by changes in OS and BIOS time. I only can say that unexpected changes to date and time might lead to unexpected issues and...
by lazna
06 Jun 2024 05:59
Forum: DOS Batch Forum
Topic: Cmdwiz - 54 operation cmd helper tool (now with Unicode)
Replies: 65
Views: 134770

Re: Cmdwiz - 54 operation cmd helper tool (now with Unicode)

am I understand it correctly, that your utility read boot, actual or both times from RTC, and not from OS??
by lazna
05 Jun 2024 13:22
Forum: DOS Batch Forum
Topic: NetBazmek - Windows networking subsytem helper
Replies: 4
Views: 4067

Re: NetBazmek - Windows networking subsytem helper

Version 0.0.7 relased. Bugfixes and new features: Add/remove VLANs Screen to Telegram MAC address randomization Realtime traffic throughtput metering Periodical internet speedtest Default gateway swop Read packed Release notes comment welcome https://bazmek.open-plc.org/release/netbazmek_0.0.7.zip I...
by lazna
05 Jun 2024 12:44
Forum: DOS Batch Forum
Topic: Cmdwiz - 54 operation cmd helper tool (now with Unicode)
Replies: 65
Views: 134770

Re: Cmdwiz - 54 operation cmd helper tool (now with Unicode)

Please, read my post carefully, I have posted actual date and time, and boot date and time. So you can simply see the data and possibly perform debug computation.
by lazna
03 Jun 2024 07:57
Forum: DOS Batch Forum
Topic: Cmdwiz - 54 operation cmd helper tool (now with Unicode)
Replies: 65
Views: 134770

Re: Cmdwiz - 54 operation cmd helper tool (now with Unicode)

cmdwiz.exe gettime echo %errorlevel% give me negative number -421671808 while for /f "tokens=1-4" %a in ('net statistics workstation^| findstr since') do echo %c %d give me 21/05/2024 11:53:54 and echo %date% %time% give me 03/06/2024 15:53:35.79 windows 10, 64bit what could be is wrong? UPDATE: Aft...
by lazna
25 May 2024 06:44
Forum: DOS Batch Forum
Topic: custom console window banner
Replies: 5
Views: 11573

Re: custom console window banner

just tried jebs solution. It printing banner fine, but it prepend %a token with strange character this is an autorun script @echo off cls set "_ccl_=%cmdcmdline%" if "%_ccl_:~1,-2%" == "%comspec%" ( echo This is the banner first line echo the second line... ) when start a new console window, it prin...
by lazna
29 Apr 2024 03:05
Forum: DOS Batch Forum
Topic: pipe binary mode
Replies: 1
Views: 2968

pipe binary mode

Trying to contruct command which download and unzip set of files in following manner: curl.exe -o- "https://host.com/release/file.zip" | tar.exe -xf - -C "C:\work\target_dir" but some archive files missing in extracted structure. Suspect Windows Defender, but its log display nothing. What could be w...
by lazna
23 Mar 2024 09:35
Forum: DOS Batch Forum
Topic: Cmdwiz - 54 operation cmd helper tool (now with Unicode)
Replies: 65
Views: 134770

Re: Cmdwiz - 54 operation cmd helper tool (now with Unicode)

just discover interesting issue, the cmdwiz 'setbuffersize' behave differently when script is started as a command from existing console window, and when is doubleclicked in windows explorer. But only on _ONE_ of my two machines.... @echo off set rows=27 set cols=90 echo Read current settings c:\uti...
by lazna
16 Mar 2024 02:29
Forum: DOS Batch Forum
Topic: path to hosts file from script
Replies: 3
Views: 2993

Re: path to hosts file from script

Squashman wrote:
15 Mar 2024 12:47
%systemroot% is a variable which means you need double expansion.

Code: Select all

if "%%~a"=="DataBasePath" CALL set "hostspath=%%b"
Thanks Sqashman, you are right, it does work with call.
by lazna
15 Mar 2024 04:31
Forum: DOS Batch Forum
Topic: path to hosts file from script
Replies: 3
Views: 2993

path to hosts file from script

trying to read path of hosts file but it does not work in script @echo off for /f "tokens=1,3" %%a in (' reg query "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /V "DataBasePath" ') do ( if "%%~a"=="DataBasePath" set "hostspath=%%b" ) if exist "%hostspath%\hosts" (echo yes) else (echo no...
by lazna
02 Feb 2024 13:57
Forum: DOS Batch Forum
Topic: SYSTEM account console 254 characters limit
Replies: 4
Views: 13083

Re: SYSTEM account console 254 characters limit

If you think you need the SYSTEM account for something, you're doing something wrong. I do not found any other way to start batch script as a scheduled task to stay COMPLETELLY hidden, than run it under SYSTEM account. If you need more than 254 characters for a single command, you're also doing som...
by lazna
30 Jan 2024 08:37
Forum: DOS Batch Forum
Topic: SYSTEM account console 254 characters limit
Replies: 4
Views: 13083

Re: SYSTEM account console 254 characters limit

psexec is a testing tool only in my case, in reality I need my batch is started as a scheduled task running under SYSTEM account. This failed, so I start testing with psexec and found this issue. My problem arise when trying to start powershell oneliner inside of batch script, which need full path t...
by lazna
21 Jan 2024 11:29
Forum: DOS Batch Forum
Topic: custom console window banner
Replies: 5
Views: 11573

Re: custom console window banner

thank you both, will check your solutions!