1.

Solve : Batch files and Windows XP's stupid"DOS Simulator"?

Answer»

I need to make a batch file that will delete a file. I have tried and tried, but I cannot get it to work. I need to delete:
"C:\Documents and Settings\Compaq_Owner\My Documents\My Received Files\Mrs. Robinson.mp3"

I have tried a simple batch file:
"del C:\Documents and Settings\Compaq_Owner\My Documents\My Received Files\Mrs. Robinson.mp3 /q
exit"
but it did not work. It just says that it cannot find the file specified.

Does anyone know how to solve this problem?

(this is more target practice experimenting than needed)

I know that the problem is that the file has a space in it, INSTEAD of Mrs.Robinson.mp3, its Mrs. Robinson.mp3. How do I get around this problem?
del "C:\Documents and Settings\Compaq_Owner\My Documents\My Received Files\Mrs. Robinson.mp3" /qAnd the Robinson is gone.
YAY! IT WORKED!
(and I didnt have to EXPLAIN why I needed it either!)
Thanks, Dilbert!
(I can now complete my plan)Quote

(and I didnt have to explain why I needed it either!)

We let you slide this time. Quote
Quote
(and I didnt have to explain why I needed it either!)

We let you slide this time.
GOOD thing!
Quote
And the Robinson is gone.
YAY! IT WORKED!
(and I didnt have to explain why I needed it either!)
Thanks, Dilbert!
(I can now complete my plan)


We'd better asked, the word plan lokes mysterious
If you really are up to bad, del won't be that good to destroy someones computer... No, I let my friend have a certain file, and he started to tick me off, and I told him that I would take the file back. He said "Try, (myname), Try"
And I did. All traces of Mrs. Robinson.mp3 are gone from his computer, as well as the program cool.bat .

Dont worry, he really wanted to see me remove it from his computer, and I did.

(BTW: the file had a Kazaa string in it that would have gotten it quarinteened by some SPY Sweeper program anyways, so thats a plus that its gone. Ill give it back to him someday. )LOL

Remember to only put quotes around "spaced" things, not the WHOLE command. All about syntax. Basically, only put quotes around what DOS wouldn't understand otherwise. It understands "del" just fine.


Discussion

No Comment Found