-
Creating a batch file
I am having a bit of a problem creating a batch file which will create a shortcut on a user's desktop to an app on our server. The following should work, should it not?
copy x:\folder\filename c:\documents and settings\all users\desktop
Any help is greatly appreciated, TIA!!
-
Describe the problem in more detail...
Is the source location a mapped drive that is in the script? If so is it mapped before the copy process?
What OS are these PC's? If they are Win2k and XP (judging from the copy to location I presume so) do the users have admin or power user rights on the PC? If they don’t, the script won’t let them copy to the all users desktop…
Lastly, what I think is the problem is that you have spaces in your command line. Perhaps truncated:
copy X:\file.lnk c:\docume~1\alluse~1\desktop
-
I got to work by using a backdoor approach. The script is as follows:
c:
cd\documents and settings\all users\desktop
copy s:\bridger\shortcuttohomelandtracker.lnk
where s: is the source and c: the destination
This worked like a charm!!
Thanks for the feedback Ya_Know!! :thumbs: