Search found 357 matches

by alan_b
10 Jan 2014 04:22
Forum: DOS Batch Forum
Topic: How do I abort a program that keeps shutting down the PC?
Replies: 8
Views: 7450

Re: How do I abort a program that keeps shutting down the PC

Batch PROgrammers wrote:My friend has made a program which logs you out and some how it has put him in a loop and now he can only get on his pc for 15 secs
can this be fixed

With a friend like that - who needs enemies :twisted:
by alan_b
10 Jan 2014 04:12
Forum: DOS Batch Forum
Topic: Why does it take 100 times as long for the eighth DIR ?
Replies: 14
Views: 15772

Re: Why does it take 100 times as long for the eighth DIR ?

Sorry - I forgot to explain. My script has always assumed that line 3 would stipulate paths that already exist, it does not create paths to suit the script, but instead line 3 is adjusted to suit the paths to be tested. Hence line 3 processes these three paths :- "E:\Test\Fill\A" "E:\...
by alan_b
09 Jan 2014 16:20
Forum: DOS Batch Forum
Topic: Why does it take 100 times as long for the eighth DIR ?
Replies: 14
Views: 15772

Why does it take 100 times as long for the eighth DIR ?

DIR "%~3" /W | FIND "ill" Above is the command which normally takes perhaps 50 mSec, but on every eighth instance it takes 4000 mSec, and after competing a run with 31 such instances over a 136 second period, The Windows Task Manage Resources shows under "CPU" that 19 ...
by alan_b
07 Dec 2013 17:32
Forum: DOS Batch Forum
Topic: Why is TOT~4 legal as a string but NOT as a numerical value?
Replies: 2
Views: 3047

Why is TOT~4 legal as a string but NOT as a numerical value?

@ECHO OFF SETLOCAL EnableDelayedExpansion SET "V~1=123" SET "V~2=456" SET /A TOT_3=%V~1%+%V~2% ECHO %V~1%+%V~2% = %TOT_3% echo pre-missing operator SET /A TOT~4=%V~1%+%V~2% echo post-missing operator ECHO %V~1%+%V~2% = %TOT~4% GOTO :EOF The above code produces this result C:\Use...
by alan_b
02 Dec 2013 05:04
Forum: DOS Batch Forum
Topic: HELP :- FSUTIL + COPY versus XCOPY /? ; Caches + i/o Buffers
Replies: 2
Views: 3657

Re: HELP :- FSUTIL + COPY versus XCOPY /? ; Caches + i/o Buf

Thanks for the polite reminder. I realise now it was a stupid question. I learnt when I started using Windows as an administrator at home (instead of a normal User account subject to the control of the I.T. department) that Windows would run faster if Pagefile.sys was on a non-system Disk, because t...
by alan_b
30 Nov 2013 07:48
Forum: DOS Batch Forum
Topic: HELP :- FSUTIL + COPY versus XCOPY /? ; Caches + i/o Buffers
Replies: 2
Views: 3657

HELP :- FSUTIL + COPY versus XCOPY /? ; Caches + i/o Buffers

I want a better understanding of the factors affecting :- Both the Real and also the virtual or apparent Speed of Disks ; And pure Read only and also Write only of archive files ; And the transfer of files between partitions on the same Disk and between Disks. I wish to produce a script that will he...
by alan_b
27 Nov 2013 10:26
Forum: DOS Batch Forum
Topic: How to DIRECT COPY files WITHOUT READing from Wndows caches.
Replies: 8
Views: 7026

Re: How to DIRECT COPY files WITHOUT READing from Wndows cac

How does fsutil affect the timestamps on the files when used like this? No effect. MY Flash drive F: has NTFS format and a specific file has just been processed and the these time stamp values existed on F: before and after running fsutil, and the same values appear on the HDD that was the copy tar...
by alan_b
27 Nov 2013 03:04
Forum: DOS Batch Forum
Topic: How to DIRECT COPY files WITHOUT READing from Wndows caches.
Replies: 8
Views: 7026

Re: How to DIRECT COPY files WITHOUT READing from Wndows cac

It ran O.K. with my normal authority as an administrator,
but I am happy to try any other simple method that you might like to suggest.

Regards
Alan
by alan_b
26 Nov 2013 14:34
Forum: DOS Batch Forum
Topic: How to DIRECT COPY files WITHOUT READing from Wndows caches.
Replies: 8
Views: 7026

Re: How to DIRECT COPY files WITHOUT READing from Wndows cac

einstein1969 wrote:this?

windows-file-caching

Einstein1969

Many thanks, fsutil does the job perfectly and was very easy to incorporate in my script.

Regards
Alan
by alan_b
26 Nov 2013 04:34
Forum: DOS Batch Forum
Topic: How to DIRECT COPY files WITHOUT READing from Wndows caches.
Replies: 8
Views: 7026

Re: How to DIRECT COPY files WITHOUT READing from Wndows cac

Sorry but that does not seem to serve my purpose. I am not interested in forcing the contents of the write buffer to a drive. I only wish to ensure that when I read from a drive that I am NOT reading from a cache the data that was previously accessed. I have achieved my primary goal which is to meas...
by alan_b
25 Nov 2013 16:14
Forum: DOS Batch Forum
Topic: How to DIRECT COPY files WITHOUT READing from Wndows caches.
Replies: 8
Views: 7026

How to DIRECT COPY files WITHOUT READing from Wndows caches.

I can measure the time T_COPY that it takes to copy a large file from one drive to another. It takes longer to do this the first time after rebooting because the file is not in RAM so it has to be read from the Source Drive, after which any repetition of the same source file is very much quicker. Th...
by alan_b
31 Oct 2013 02:24
Forum: DOS Batch Forum
Topic: Help - How to process each target file in order of size ?
Replies: 5
Views: 4873

Re: Help - How to process each target file in order of size

Between waking up and getting out of bed this morning I was embarrassed to realise my brain had gone to sleep before I posted my last question. I really must try to get my body away from the keyboard and into bed first However, thank you both for rushing to my aid. Also thank you for the additional ...
by alan_b
30 Oct 2013 17:23
Forum: DOS Batch Forum
Topic: Help - How to process each target file in order of size ?
Replies: 5
Views: 4873

Re: Help - How to process each target file in order of size

Many Thanks - that is working. I assume the double quotes at the start of ""W:\SpeedTest\" is a harmless typo, It seems to have no effect on operation if I retain or delete the excess ". There is one strange side-effect that puzzles me. My originally code can restrict its selecti...
by alan_b
30 Oct 2013 14:41
Forum: DOS Batch Forum
Topic: Help - How to process each target file in order of size ?
Replies: 5
Views: 4873

Help - How to process each target file in order of size ?

My script launches action by routine ":MY-C" upon each file with a folder "W:\SpeedTest\" with this :- FOR %%f IN ("W:\SpeedTest\*.*") DO CALL :My-C "%%f" I am now into "brain fade" after debugging ":My-C" which is now working well. Unfortu...