Search found 555 matches

by miskox
08 Apr 2016 01:46
Forum: DOS Batch Forum
Topic: Timing for commands
Replies: 6
Views: 5354

Re: Timming for commands

I just noted that you are creating test.tmp but you are deleting temp.tmp Good eyes! Thanks. Anyway I get same results (within a hundredth of a second). Here is the correct code: @echo off echo TEST>test.tmp echo %time% del test.tmp>nul 2>nul echo TEST>test.tmp echo %time% if exist test.tmp del tes...
by miskox
07 Apr 2016 11:46
Forum: DOS Batch Forum
Topic: Timing for commands
Replies: 6
Views: 5354

Timing for commands

Hi all! I would like to measure which command is faster: @echo off echo TEST>test.tmp echo %time% del temp.tmp>nul 2>nul echo TEST>test.tmp echo %time% if exist temp.tmp del temp.tmp echo %time% Result: c:\test.cmd 19:42:03,46 19:42:03,46 19:42:03,46 c:\ I would say del temp.tmp>nul 2>nul is faster ...
by miskox
30 Mar 2016 23:43
Forum: DOS Batch Forum
Topic: __COMPAT_LAYER variable.
Replies: 3
Views: 6047

Re: __COMPAT_LAYER variable.

[quote="aGerman"]You may use set "__COMPAT_LAYER=RunAsInvoker" to suppress the UAC prompt of Programs that require the UAC. The result is that the process runs as normal logged user (without elevatet rights). The process is not able to execute operations that would require admini...
by miskox
22 Mar 2016 02:32
Forum: DOS Batch Forum
Topic: Conditional section of batch file wont write to log files
Replies: 6
Views: 5543

Re: Conditional section of batch file wont write to log files

Do all the other lines get echoed to the log file? Also, you may want to get rid of that setlocal that's seemingly there for no reason. This might be the reason. This setlocal erases the variable 'logfile' and it is displayed on the screen instead. Maybe you could add echo LOGFILE=%logfile%_ Saso
by miskox
21 Mar 2016 10:40
Forum: DOS Batch Forum
Topic: [code] Batch Clock Widget
Replies: 51
Views: 85370

Re: [code] Batch Clock Widget

Very gooood.

Thanks.
Saso
by miskox
15 Mar 2016 12:54
Forum: DOS Batch Forum
Topic: Advanced Batch features via auxiliary .exe programs
Replies: 76
Views: 214288

Re: Advanced Batch features via auxiliary .exe programs

Thank you Aacini for this test - very good idea!

Saso
by miskox
11 Mar 2016 06:37
Forum: DOS Batch Forum
Topic: On Login Protocol
Replies: 5
Views: 4424

Re: On Login Protocol

I found this: m --------------- You can set triggers for tasks, as opposed to running on a schedule. Start Task Scheduler from the start Menu Select the Task Scheduler Library in the left nav pane Select Action > Create Task... (not Create Basic Task...) from the menu bar In the new Create Task wind...
by miskox
08 Mar 2016 10:52
Forum: DOS Batch Forum
Topic: If /I not - question on correct use of
Replies: 8
Views: 6525

Re: If not /I - question on correct use of

You should use FOR /L.

Saso
by miskox
07 Mar 2016 04:13
Forum: DOS Batch Forum
Topic: Sequence of commands
Replies: 10
Views: 7044

Re: Sequence of commands

You can try and use sdelete.exe from Sysinternals (https://technet.microsoft.com/en-us/sys ... elete.aspx). It returns to 'cmd' when it completes.

Saso
by miskox
07 Mar 2016 02:52
Forum: DOS Batch Forum
Topic: Advanced Batch features via auxiliary .exe programs
Replies: 76
Views: 214288

Re: Advanced Batch features via auxiliary .exe programs

I finally managed to do some tests with COLORSHOW.EXE. Looks great! I have this problem: @echo off echo. echo. echo. set part1= &rem set part2=1&rem set part3= ł== ł 6 5&rem these characters are 0xB3 (vertical graphic bar in CP852) echo %part1%%part2%%part3% colorshow.exe /07 "%part...
by miskox
07 Mar 2016 02:40
Forum: DOS Batch Forum
Topic: If /I not - question on correct use of
Replies: 8
Views: 6525

Re: If not /I - question on correct use of

Can it help if you delete ".bat" from the string first and then add it?

Code: Select all

set oFile=%oFile:.bat=%.bat


Saso
by miskox
11 Feb 2016 12:10
Forum: DOS Batch Forum
Topic: Advanced Batch features via auxiliary .exe programs
Replies: 76
Views: 214288

Re: Advanced Batch features via auxiliary .exe programs

That is what I was trying to say - the method to create your executable files is complicated and needs too many steps. Why not create a single script for each binary? Do other readers have any opinion about this? Please chime in if you agree with me. I agree with you on this, Foxi. I really like Aa...
by miskox
15 Jan 2016 14:45
Forum: DOS Batch Forum
Topic: VerticalMirroring, HorizontalMirroring
Replies: 4
Views: 3381

Re: VerticalMirroring, HorizontalMirroring

Aacini thanks alot. Completely different approach. Works great!

Thanks again.
Saso
by miskox
13 Jan 2016 13:01
Forum: DOS Batch Forum
Topic: VerticalMirroring, HorizontalMirroring
Replies: 4
Views: 3381

VerticalMirroring, HorizontalMirroring

I have a .txt file with this ASCII graphics: +----+-----+--+---+ | | |==| | | | 22|==| | | +-+--- -+==| | |23 ||| 21 | +--+ | | |24 | | | +-+--- -+==| | | | 25|==| | | | |==| | +----+-----+--+---+ And I have this program VMirroring.cmd (V stands for Vertical): @echo off if "%1"=="&quo...
by miskox
11 Dec 2015 14:56
Forum: DOS Batch Forum
Topic: If input ends with goto
Replies: 1
Views: 2589

Re: If input ends with goto

Code: Select all

@echo off 
Cls
set word=&rem
Set /p word=Enter word:
If /I "%word:~-3%"=="ing" goto :ING
goto :EOF

:ing
Echo ing
Pause


This should work.
Saso