tommccann Posted September 13, 2010 Posted September 13, 2010 help need to run a shortcut from login script because its easier than sticking the shortcut in every pc's startup folder. tried call /k "\\server\folder\shortcut", and call /k \\server\folder\shortcut, call /k "\\server\folder\shortcut.ink", call /k \\server\folder\shortcut.ink also tried start "\\server\folder\shortcut.ink", start \\server\folder\shortcut.ink, start "\\server\folder\shortcut", and start \\server\folder\shortcut, :mad::mad:
LosOjos Posted September 13, 2010 Posted September 13, 2010 don't know if it's just a typo above, but the shortcut extension is .lnk, not .ink, so I'd check that. Also, why don't you just execute the same command line that the shortcut does rather than trying to execute the shortcut itself? 1
vikpaw Posted September 13, 2010 Posted September 13, 2010 shouldn't the shortcut file extension be .lnk i.e. .LNK 1
vikpaw Posted September 13, 2010 Posted September 13, 2010 what he said ^ . Look at the properties of the shortcut and run the target itself. 1
tommccann Posted September 13, 2010 Author Posted September 13, 2010 right i copied the lines to a test.bat and ran it with success!! (and yes i was using Lnk not ink) for some reason it just wont run from the login script!?! maybe a wait command may fix this
tommccann Posted September 13, 2010 Author Posted September 13, 2010 Problem solved!! moved the code line to the very to of the script and SUCCESS!! yippee
vikpaw Posted September 13, 2010 Posted September 13, 2010 my next thought was whether or not the shared drive was accessible yet. glad it's sorted
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now