Hallo,
When you use command.com
Eg. From windows 98 I've written a batch for timestamp.
http://www.administrator.de/forum/win98-batch-datum-ermitteln-und-die-variable-splitten-in-tag-mon-jahr-221318.html#comment-891359
Phil
Search found 246 matches
- 06 Oct 2014 13:38
- Forum: DOS Batch Forum
- Topic: Delete files on specific date
- Replies: 23
- Views: 23008
- 09 Sep 2014 01:09
- Forum: DOS Batch Forum
- Topic: Replacing a "|" in an ordinary text file
- Replies: 13
- Views: 9749
Re: Replacing a "|" in an ordinary text file
It's interesting that if you remove the if defined text then a bug sets the variable to a={ when the variable is empty. Undefined vars everytimes prompt as their abrevs. If you want a filled Variable fill with the Line number @echo off setlocal enabledelayedexpansion set "filename=TestText.txt...
- 08 Sep 2014 14:01
- Forum: DOS Batch Forum
- Topic: Another "MODE" trick demo
- Replies: 12
- Views: 11390
Re: Another "MODE" trick demo
@ Einstein cmd buffer use maximal mode 80,9999 Than you can use mode without minimize lines Into the animated field from left to the right side write full colored signs. Now use mode, go to the line for animation and write the letters only without the right wall (with linefeed). Why do you not use y...
- 24 Aug 2014 15:26
- Forum: DOS Batch Forum
- Topic: Script for Automatically moving files older than 'X' days
- Replies: 15
- Views: 22343
Re: Script for Automatically moving files older than 'X' day
For use the robocopy.exe it does not requirement to install on System.
Into variable PATH add the path from downloaded robocopy.exe.
Phil
Into variable PATH add the path from downloaded robocopy.exe.
Phil
- 19 Aug 2014 06:54
- Forum: DOS Batch Forum
- Topic: Help with Date and Time
- Replies: 12
- Views: 12589
Re: Help with Date and Time
Hi, with wget you can download this html Site: http://24timezones.com/de_weltzeit/berlin_aktuelle_zeit.php local timestring is to search in this downloaded File eg: <span id="currentTime">14:52:52, Dienstag 19, August 2014</span> when website time and localtime is equal then read out this ...
- 18 Aug 2014 12:33
- Forum: DOS Batch Forum
- Topic: short way to input with xcopy
- Replies: 12
- Views: 17737
Re: short way to input with xcopy
Hi Phil, I have not complete understaind what you write in your post . My goal seem different. I need to manage multiple input at high rate. I don't care if xcopy finish with "s" or "j". I reRun for continuos input. I have probed this but i have difficult to stabilize. This can ...
- 30 Jul 2014 09:29
- Forum: DOS Batch Forum
- Topic: BrainF*** Interpreter in Batch
- Replies: 61
- Views: 48230
Re: BrainF*** Interpreter in Batch
I have not completely understaind how bf is to manage. Where are Testfiles Theres are Saller than this? system Surface (Win RT 8.1) script dbenham v5.8 file PWQQUesT (Hanoi) From 35.BF_CHR till 126.BF_CHR it is no once in it. The ErrorMessage only is in these files: Das System hat keinen Meldungstex...
- 11 Jul 2014 11:40
- Forum: DOS Batch Forum
- Topic: Batch function help?
- Replies: 45
- Views: 33689
Re: Batch function help?
this Routine I have optimized. 1. Same Letters Upper- and Lowercase can Set into one Var (named Letter). once a time to intitiate this Alphabet. 2. only one Forloop to read the string one by one. 3. with the correct "delims" (all other Singn) we reduce the nonAlphabetic Output and Error Me...
- 06 Jul 2014 14:44
- Forum: DOS Batch Forum
- Topic: Batch function help?
- Replies: 45
- Views: 33689
Re: Batch function help?
Finally you can reduce the changin loops (7 doubled processes) into:
one call and two for loops with positive results.
See on this:
http://www.administrator.de/forum/batch-input-so-abgreifen-als-w%c3%a4re-die-tastatur-auf-en-us-gestellt-233504.html#comment-913924
Phil
one call and two for loops with positive results.
See on this:
http://www.administrator.de/forum/batch-input-so-abgreifen-als-w%c3%a4re-die-tastatur-auf-en-us-gestellt-233504.html#comment-913924
Phil
- 06 Jul 2014 04:52
- Forum: DOS Batch Forum
- Topic: Batch function help?
- Replies: 45
- Views: 33689
Re: Batch function help?
To reduce the if's you can use every Loop once a time. A negative for loop is Much efficent as two if's. Minus 30% for /l %%g in (0,1,%#%) do ( call set j=%%@:~%%g,1%% (for /f "delims=AaEeIiLlNnOoRrSsTtUu" %%h in ("!j!") do @ )||set /a $+=1 (for /f "delims=DdGg" %%h in ...
- 17 May 2014 14:26
- Forum: DOS Batch Forum
- Topic: converting short path name to long path name
- Replies: 4
- Views: 8288
Re: converting short path name to long path name
Hallo,
with Dir and ".?" at the end it prompt the full Name
Phil
with Dir and ".?" at the end it prompt the full Name
Code: Select all
Dir /s/b/x C:\instance\domains\DAC04Q~1.COM\COMMON~1.?
Phil
- 06 May 2014 06:45
- Forum: DOS Batch Forum
- Topic: print output to txt file
- Replies: 2
- Views: 3534
Re: print output to txt file
Hi, i have modified Daves Tee.cmd a time ago. It is not fast but interaktive commands in the log you can read in the cmd-line (command prompt) empty Lines in promt only displayed as one empty line. --- No Support for [strg]+[C]. ::batchTee.bat usage: :: command >logfile |batchTee LogFile @echo off s...
- 17 Apr 2014 11:42
- Forum: DOS Batch Forum
- Topic: short way to input with xcopy
- Replies: 12
- Views: 17737
Re: short way to input with xcopy
In your code, for execution is not terminated if not j; n or y n, etc. depending on the language setting is pressed. At a keystroke, the researchers bight could be completed in a subroutine through an exit / b. However, if the option is only an indefinite keystroke to read something, then I use this...
- 15 Apr 2014 15:10
- Forum: DOS Batch Forum
- Topic: short way to input with xcopy
- Replies: 12
- Views: 17737
Re: short way to input with xcopy
@aGerman thank you for that explanation. I can't do that - my bad english So I have competed the code, that the last Token before Input is Autoset. At other language settings for example. @echo off setlocal disabledelayedexpansion :init_token_Keypress for /f "eol=1delims=#" %%d in ('"...
- 14 Apr 2014 13:26
- Forum: DOS Batch Forum
- Topic: short way to input with xcopy
- Replies: 12
- Views: 17737
short way to input with xcopy
Hallo, I've seen this in most batches: for /f "delims=" %%A in ('xcopy /w "%~f0" "%~f0" 2^>nul') do ( if not defined key set "key=%%A" ) set "key=!key:~-1!" There is a simpe way to read the first line: The output with file is not promt when use /Q In...