Creating a batch file
Results 1 to 3 of 3

Thread: Creating a batch file

  1. #1
    Registered User Carlitos_Way's Avatar
    Join Date
    Jun 2001
    Location
    SO. CAL
    Posts
    123

    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.

  2. #2
    Banned Ya_know's Avatar
    Join Date
    Jun 2001
    Posts
    10,692
    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.

  3. #3
    Registered User Carlitos_Way's Avatar
    Join Date
    Jun 2001
    Location
    SO. CAL
    Posts
    123
    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!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •