Search found 3 matches

by Yossi Moses
19 Dec 2013 11:35
Forum: DOS Batch Forum
Topic: DIR command not Refreshed
Replies: 5
Views: 4701

Re: DIR command not Refreshed

Thank you all I tried it on XP and Win7, I ran in 2 separated command-line windows: C:\>FOR /L %i IN (1, 1, 1000000) DO ECHO.X>> TEST.TXT And C:\NET>FOR /L %i IN (1, 1, 10000) DO DIR C:\TEST.TXT | FIND "TEST.TXT" >> DIR.TXT And I got in Dir.TXT 12/19/2013 19:17 1,551 TEST.TXT 12/19/2013 19...
by Yossi Moses
18 Dec 2013 08:55
Forum: DOS Batch Forum
Topic: DIR command not Refreshed
Replies: 5
Views: 4701

DIR command not Refreshed

Dear friends The DIR command doesn't read refreshed real values of a folder. If I have a very dynamic file that grows all the time, DIR gives any size, next DIR gives the same size until I go to the folder and press F5, then DIR gives a new bigger size. Any ideas how to refresh from Command-Line? Th...
by Yossi Moses
14 Nov 2013 07:46
Forum: DOS Batch Forum
Topic: Substring by Variale
Replies: 2
Views: 2718

Substring by Variale

Dear freinds
The following is very tivial:

Code: Select all

%PATH:~10,5%
(from SET command help)
I don't have the 10 and 5 as constants but in Vars, so, I try this and of course it doesn't work
(Where x is for the 10 and y is for the 5)

Code: Select all

%PATH:~%x%,%y%%

Thank you very much for Suggestions