|
-
September 22nd, 2003, 03:57 PM
#1
Registered User
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!!
Last edited by Carlitos_Way; September 22nd, 2003 at 04:01 PM.
-
September 22nd, 2003, 04:54 PM
#2
Banned
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
Last edited by Ya_know; September 22nd, 2003 at 04:56 PM.
-
September 22nd, 2003, 05:23 PM
#3
Registered User
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!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks