Create shortcut desktop batch file




















I assume you are trying to do this remotely, or as part of a larger script. Make sure it executes after the user logs in, otherwise it will never get the environment variable or access to the network share unless it is wide open. I am using Dell's K Management Appliance to push a script that contains the.

Hmm figures Which also means having to give all those users permission to the share and file they are supposed to copy. What if I am trying to push it to all computers that utilize a certain username to login, doesn't matter what the computer name is. I have shared the specific folder to that user and when I login to that specific username I can access the folder share no problem. I have shared the specific folder to that group of users and when I login to that specific username I can access the folder share no problem.

This checks to see if the shortcut already exists, and if not, copies from a network share, based on their username. To continue this discussion, please ask a new question.

Get answers from your peers along with millions of IT pros who visit Spiceworks. Popular Topics in General Windows. Spiceworks Help Desk. The help desk software for IT. Track users' IT needs, easily, and with only the features you need. Learn More ». Thai Pepper.

Stephen This person is a verified professional. Verify your account to enable IT peers to see that you are a professional. You could also add the shortcut to the Favorites section in Windows Explorer. Jack Veriato This person is a verified professional. Don Oct 28, at UTC. Krizz This person is a verified professional. This method is recommended.

Don Oct 29, at UTC. I get a line 1 char 1 error trying to run that. VBS you posted. Notify, that name of Desktop folder is language dependent. Logman Logman 3, 1 1 gold badge 16 16 silver badges 29 29 bronze badges.

Nice idea. As long as you don't have to supply any arguments, this works well. It does exactly what the poster wanted Somebody downvoted the question and all the answers link.

The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked Related 1. Hot Network Questions. Super User works best with JavaScript enabled. Accept all cookies Customize settings.



0コメント

  • 1000 / 1000