simple batch could not find full path\file

Microsoft Windows vista ultimate 64-bit
April 1, 2010 at 13:40:20
Specs: Windows Vista SP1 Ultimate 64 bit
I've created a batch file to eliminate specific duplicate files, by name. It consists only of lines that look like the following:

del "C:\Users\Joe\Documents\file1.doc"
del "C:\Users\Joe\Documents\file2.ppt"
...
del "C:\Users\Joe\Documents\lastfile.xls"

If I cut and paste any line from the batch file to the command line, it executes perfectly.

However, when executing within the batch file, I get the following message for each line:

Could Not Find del "C:\Users\Joe\Documents\file1.doc"
...etc.

I'm at a loss. I don't want to have to delete each of the several thousand duplicate files one at a time.

Any idea what's wrong?

Thanks


See More: simple batch could not find full path\file

Report •

#1
April 1, 2010 at 22:11:15
It's saying 'Could Not Find del "C:\Users\Joe\Documents\file1.doc"? With the DEL? That would indicate it's not seeing DEL as a command and is assuming the entire line is a single command.

Is there a space between DEL and the rest of the line? What happens if you add a second space there?

You're not really green until you're soylent green.


Report •

#2
April 2, 2010 at 07:57:08
Hard tellin' without seeing the bat.


=====================================
Helping others achieve escape felicity

M2


Report •
Related Solutions


Ask Question