Trying to install link files in users desktop in install batch scr

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

Guest

Hi,
I have been trying to add a line to a batch file to copy a link file to
the current users desktop. The line of code is as follows:

copy .\Kill_Pages_Processes.lnk "%USERPROFILE%\Desktop\"

When I run the batch file I can see that the environment variable is being
picked up but the quotes around the path are being lost. Unfortunately the
resulting path has spaces in it so the quotes are needed for the command line
to pick it up.

If someone can point me in the right direction it would be appreciated.

Txs
Pob
 

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


Back
Top