1.

Solve : Sweep the whole system for a file?

Answer»

I was wondering how you would sweep the whole system for a file without having to mess with the path. (if any of this is possible, of course.)This will scan all NTFS partitions on your system for file.ext:

Code: [Select]@echo off
for /f "tokens=3" %%A in ('echo list volume ^| diskpart ^| find "NTFS"') do (
dir %%A:\file.ext /s /b

FBSo what would a NTFS partition be?http://en.wikipedia.org/wiki/NTFS NT file system. It's the file system used by NT based systems. NT based systems will also support FAT file systems but i was assuming you don't use them.

FB
that is sounds intersting. but does the command work in winxp ? I tried it but there was no thing listed. I'm not sure if this will work because, I want the user to be able to input the file he WISHES to find, and then if the file does exist he has 3 options with it. To remove it, leave it, or rename it.PUT in another for loop with the OUTPUT from the dir command.

FBQuote from: BatchFileCommand on JANUARY 08, 2009, 05:58:01 PM

So what would a NTFS partition be?

What is the sky?

Why do we put shoes on our feet and not on our hands?

Why don't pineapples taste like sausages?

Quote
What is the sky?

Sunlight and the molecules reflect creating a blue wonderland we call the sky .

Quote
Why do we put shoes on our feet and not on our hands?

Because we couldn't do tings such as open doors .

Quote
Why don't pineapples taste like sausages?

Because pineapple is a somewhat tropical fruit which grows on trees, and sausage comes
from animals which came from other animals which are none the least tropic .


Discussion

No Comment Found