T
Tim.T
I have Temp folders on more than one drive, and often they get full with
files created by particular software I use; I just want to be able to check
their contents, and if neccessary remove the files therein. While I do have
some "cleaner" programs which remove temp files, they don't always do the
trick.
I'm trying to create a BAT file which will change to each Temp folder
location, and list its contents. However, no matter how I type it, it always
just shows C: drive and nothing else. This is how I type it in Notepad:
cd c:
dir /s /b *Temp
pause
cd g:
dir /s /b *Temp
pause
cd v:
dir /s /b *Temp
pause
What I don't understand is, these commands work fine if I type them in the
Command Processor window in sequence. I just can't seem to get them to work
in sequence as a BAT file. Any idea what I'm doing wrong? I'm clearly
missing an extra command/s to get the BAT to work. I want the BAT to work no
matter where it is located on my PC, too; for some reason it only lists C:
no matter where I run it from.
Tim
files created by particular software I use; I just want to be able to check
their contents, and if neccessary remove the files therein. While I do have
some "cleaner" programs which remove temp files, they don't always do the
trick.
I'm trying to create a BAT file which will change to each Temp folder
location, and list its contents. However, no matter how I type it, it always
just shows C: drive and nothing else. This is how I type it in Notepad:
cd c:
dir /s /b *Temp
pause
cd g:
dir /s /b *Temp
pause
cd v:
dir /s /b *Temp
pause
What I don't understand is, these commands work fine if I type them in the
Command Processor window in sequence. I just can't seem to get them to work
in sequence as a BAT file. Any idea what I'm doing wrong? I'm clearly
missing an extra command/s to get the BAT to work. I want the BAT to work no
matter where it is located on my PC, too; for some reason it only lists C:
no matter where I run it from.
Tim