Batch file to copy a file on Desktop

I

Irshad Alam

How to copy a file from Floopy Drive to Desktop, with the
help of batch file on Windows XP Operating System
I used the following command in the batch file, but it
does not work :

IF EXIST C:\(PATH)\DESKTOP\NUL COPY A:\TELE.LNK C:\(PATH)
\DESKTOP

It is very necessary to copy a file from A: to Desktop as
some other files are also there, which I copy to some
other folders.

Please advise.
 
D

David Candy

Try inverted commas. There is no point posting anything other than the full program. Donn't bother answering.
 
L

Lanwench [MVP - Exchange]

Irshad said:
How to copy a file from Floopy Drive to Desktop, with the
help of batch file on Windows XP Operating System
I used the following command in the batch file, but it
does not work :

IF EXIST C:\(PATH)\DESKTOP\NUL COPY A:\TELE.LNK C:\(PATH)
\DESKTOP

You need quotes if there are spaces. As in "c:\blahblah blah\blah
blah\file.txt"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top