Batch file help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I effectively use variables in my batch files? I am trying to delete
a file from the desktop of the currently logged on user. I tried the below:

del %userprofile%\desktop\realplay.exe


It failed with "The systen cannot find the path specified".

Thanks.
 

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

Back
Top