Search found 357 matches

by alan_b
07 May 2014 11:39
Forum: DOS Batch Forum
Topic: How to delete from all folders "certain files"
Replies: 5
Views: 8281

Re: How to delete from all folders "certain files"

Help, this gives me a problem :- for /d /r "d:\base\folder" %%a in (*) do ( ) It "Walks the directory tree rooted at [drive:]path, executing the FOR statement in each directory of the tree" AND THEN IT JUMPS TO ANOTHER DRIVE and continues to execute the delete commands there also...
by alan_b
06 May 2014 06:21
Forum: DOS Batch Forum
Topic: How to delete from all folders "certain files"
Replies: 5
Views: 8281

Re: How to delete from all folders "certain files"

@foxidrive Thanks - that worked well - too well and the train jumped off the rails I placed the script in R:\Drive_D\VHD and tweaked it to work from the root of P:\. It had a lot of work to do and after waiting a while I hit Ctrl'C to see what was happening. Then I let it resume and it started telli...
by alan_b
04 May 2014 10:23
Forum: DOS Batch Forum
Topic: How to delete from all folders "certain files"
Replies: 5
Views: 8281

How to delete from all folders "certain files"

The perfect solution is to remove from each folder all excepting the smallest file An adequate solution is to remove from each folder every file above a certain size. My reason is that I wish to have a SMALL archive of a partition with very unusual characteristics, and after much investigation I thi...
by alan_b
01 Apr 2014 15:09
Forum: DOS Batch Forum
Topic: Is it legal for a Bat script to delete itself.
Replies: 15
Views: 24128

Re: Is it legal for a Bat script to delete itself.

Thanks for your concerns about the error message - but I never saw any error. I now find that if I am running a CMD.EXE command line and invoke R:\#-R-VHD\Sub-1\END_DISK_3.bat Then CMD.EXE does indeed show me File Not Found The batch file cannot be found. In my particular application however that do...
by alan_b
01 Apr 2014 04:46
Forum: DOS Batch Forum
Topic: Is it legal for a Bat script to delete itself.
Replies: 15
Views: 24128

Re: Is it legal for a Bat script to delete itself.

Thanks everyone.

Regards
Alan
by alan_b
31 Mar 2014 15:39
Forum: DOS Batch Forum
Topic: Is it legal for a Bat script to delete itself.
Replies: 15
Views: 24128

Is it legal for a Bat script to delete itself.

I think I remember that under Command.com it was either impossible or could cause grief if a *.BAT script tried to modify or delete itself. For use by XP onwards with CMD.EXE I have a temporary need for a Run-Once script, which will do its job and then delete itself because there is no further need ...
by alan_b
18 Jan 2014 14:40
Forum: DOS Batch Forum
Topic: How to get the Logical Block Number or alternative of a file
Replies: 2
Views: 6091

Re: How to get the Logical Block Number or alternative of a

Many thanks for the advice.

I intend to explore and report back next week.

Regards
Alan
by alan_b
18 Jan 2014 05:52
Forum: DOS Batch Forum
Topic: How to get the Logical Block Number or alternative of a file
Replies: 2
Views: 6091

How to get the Logical Block Number or alternative of a file

I wish to obtain a list showing the order in which files are placed in a partition. Defraggler can analyze a partition and give a grid display, and when I select each block it will display a list of the files in that region of the partition, but it cannot export that information as a list. m I would...
by alan_b
12 Jan 2014 14:40
Forum: DOS Batch Forum
Topic: Move files with condition
Replies: 15
Views: 15640

Re: Move files with condition

The entire concept of moving files from partitions G:\*\ to C:\*\ is flawed, with great potential for error that may be concealed until you try to use them. Move G:\*\ to C:\*\ will copy, and then delete the original with no second chance if the first attempt suffers data corruption. You can of cour...
by alan_b
12 Jan 2014 12:12
Forum: DOS Batch Forum
Topic: Why does it take 100 times as long for the eighth DIR ?
Replies: 14
Views: 19353

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

Defense+ is supposed to intercept every "dangerous" activity by one executable is interacting with another. It is like "UAC on steroids" but different in that :- It does NOT inevitably interfere every time that I launch a specific application - I click and it is launched without ...
by alan_b
12 Jan 2014 03:20
Forum: DOS Batch Forum
Topic: Why does it take 100 times as long for the eighth DIR ?
Replies: 14
Views: 19353

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

So - problem solved - mystery remains. An application is declared as suspicious if it accesses file system 14 times per second (or similar). penpen It is reasonable to be suspicious of such behaviour, but UNREASONABLE that "Defence+" has no such suspicion. I found that I could enable both...
by alan_b
11 Jan 2014 05:06
Forum: DOS Batch Forum
Topic: Why does it take 100 times as long for the eighth DIR ?
Replies: 14
Views: 19353

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

hi alan, can you do a test with "comodo" disabled? post taskmanager result. einstein1969 Thanks, you were right. The problem was present yesterday with Comodo disabled. This morning I decided to start the day by disabling Comodo and then shutting down, and then powering up so that the sys...
by alan_b
10 Jan 2014 10:45
Forum: DOS Batch Forum
Topic: Why does it take 100 times as long for the eighth DIR ?
Replies: 14
Views: 19353

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

I have to admit to being very lazy too - I noticed this SET "TINY=500K.BIN" but didn't examine the code closely. Is there supposed to be any files in those folders? Those files are NOT needed for the script I submitted My original script used the routine ":SHOW_FILES" to display...
by alan_b
10 Jan 2014 09:53
Forum: DOS Batch Forum
Topic: Why does it take 100 times as long for the eighth DIR ?
Replies: 14
Views: 19353

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

hi alan, can you do a test with "comodo" disabled? post taskmanager result. einstein1969 I did switch the Comodo Defense+ protection from "Safe Mode" to "Disabled" but left its Anti-Virus protection set at "Stateful" for my tests. I would expect Comodo to hav...
by alan_b
10 Jan 2014 06:59
Forum: DOS Batch Forum
Topic: Why does it take 100 times as long for the eighth DIR ?
Replies: 14
Views: 19353

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

Thanks for testing the script My "normal" "average" measured time was in the range 35 to 55 mSec. Your system seems to be 2 or 3 times faster. Could that be due to your running the script on a faster drive than mine, perhaps an SSD where I uses a secondary internal SATA connected...