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
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