Search found 225 matches

by pieh-ejdsch
06 Apr 2016 07:53
Forum: DOS Batch Forum
Topic: [code] Batch Clock Widget
Replies: 51
Views: 43498

Re: [code] Batch Clock Widget

Einstein you put this rem delim + = " TAB rem Tausche Escape Zeichen der Anweisung mit Zollzeichen der Optionen for /F tokens^=1^,4delims^=^.^-^{^"^ %%a in ('"wmic OS Get LocalDateTime,MUILanguages |find " " "') do if "%%~b" neq "" set "daTi=%%a...
by pieh-ejdsch
28 Feb 2016 08:55
Forum: DOS Batch Forum
Topic: TYPE bug?
Replies: 8
Views: 2363

Re: TYPE bug?

The output redirection writes exactly 1024 bytes. The selection EOF disappears at the moment as the file to write is opened. The processing of type recognises this selection EOF if 1024 bytes were read and this selection was present. Now for unexplicable reasons it is selected instead of the old sel...
by pieh-ejdsch
22 Feb 2016 06:29
Forum: DOS Batch Forum
Topic: special batch data needed for COPY and REN
Replies: 4
Views: 1664

Re: special batch data needed for COPY and REN

Hallo,
Have you dressed up a beginning with the batch? What do you have till present?

Phil
by pieh-ejdsch
19 Feb 2016 05:27
Forum: DOS Batch Forum
Topic: mysterious robocopy problem - maxage minage
Replies: 3
Views: 4197

Re: mysterious robocopy problem - maxage minage

This is just Robocopy. The help is only one recommendation like a little bit could function. What do not uncause is called that it has to go thus his. Create now a new file. One day this file will not have even today the age. The least date encloses the files created before the day. With an entry of...
by pieh-ejdsch
16 Feb 2016 07:48
Forum: DOS Batch Forum
Topic: Echo an echo command to batch file using CLI
Replies: 7
Views: 2927

Re: Echo an echo command to batch file using CLI

Hi, you're on CLI and make some tests in your file you want anything like the successful commands in a batchfile to write in take set /p Line= use arrow key to find command and enter >test.cmd cmd /v /c echo !Line! type test.cmd your CLI-macro set "file=test.cmd" set "Write=set /p Lin...
by pieh-ejdsch
27 Jan 2015 06:46
Forum: DOS Batch Forum
Topic: Date modified not updated after copying?
Replies: 3
Views: 1080

Re: Date modified not updated after copying?

hallo,

you can use an empty file before copy

Code: Select all

for %i in (source) do type nul>target\%i  && copy /y %i target


Phil
by pieh-ejdsch
05 Jan 2015 04:40
Forum: DOS Batch Forum
Topic: difficulty escaping quote(s)
Replies: 2
Views: 1422

Re: difficulty escaping quote(s)

hello, A For loop is also the parameters individually like this, as they appear in the Batch. The variable must be escaped and are given in quotation marks. The enclosing quotation marks must then be removed. The last parameter must not necessarily be enclosed in quotes. set param1=abc" set par...
by pieh-ejdsch
13 Oct 2014 02:59
Forum: DOS Batch Forum
Topic: iterating over multiple types of files?
Replies: 2
Views: 1234

Re: iterating over multiple types of files?

are there log and dat files in it?

Phil
by pieh-ejdsch
08 Oct 2014 13:06
Forum: DOS Batch Forum
Topic: Setlocal/Endlocal commands save/restore current directory!
Replies: 10
Views: 6107

Re: Setlocal/Endlocal commands save/restore current director

This "Howto - work with Variables in Batch/CMD" i've wrote in 2009 http://www.administrator.de/wissen/wie-arbeite-ich-mit-batch-umgebungsvariablen-erstellung-umgang-erweiterungen-ver%C3%A4nderungen-117069.html Also The path is the location too. This was the beginning with batch for me. I h...
by pieh-ejdsch
09 Sep 2014 01:09
Forum: DOS Batch Forum
Topic: Replacing a "|" in an ordinary text file
Replies: 13
Views: 2533

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...
by pieh-ejdsch
08 Sep 2014 14:01
Forum: DOS Batch Forum
Topic: Another "MODE" trick demo
Replies: 12
Views: 4278

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...
by pieh-ejdsch
24 Aug 2014 15:26
Forum: DOS Batch Forum
Topic: Script for Automatically moving files older than 'X' days
Replies: 15
Views: 7691

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
by pieh-ejdsch
19 Aug 2014 06:54
Forum: DOS Batch Forum
Topic: Help with Date and Time
Replies: 12
Views: 3525

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 ...
by pieh-ejdsch
18 Aug 2014 12:33
Forum: DOS Batch Forum
Topic: short way to input with xcopy
Replies: 12
Views: 5790

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