S1LV3RF1$# Posted July 18, 2005 Posted July 18, 2005 (edited) On my unattended installs i am creating a Folder called Usershare. when a new user logins for the first time it creates them a folder in that folder based off there username (mkdir %systemdrive%\usershare\%username%) I would like to create a shortcut to place in "%systemdrive%\documents and settings\%username%\sendto". To give the user Jon.doe the ability to send items to their c:\usershare\jon.doe from the right click send to function. Does anyone know how I can script this? I have already tried this from command line Shortcut %systemdrive%\usershare\%username% "%systemdrive%\documents and settings\%username%\sendto\My UserShare.lnk"I get back that shortcut is not a recognized command, did Microsoft remove that command? Edited July 18, 2005 by S1LV3RF1$#
Doc Symbiosis Posted July 18, 2005 Posted July 18, 2005 I think this command is contained in the ressource kit tools.
S1LV3RF1$# Posted July 18, 2005 Author Posted July 18, 2005 After Some More Playing moved the shortcut command into windows/system32 and ran this command Shortcut /f:"%userprofile%\sendTo\My UserShare.lnk" /A:c /t:systemdrive%\usershare\%^username%^ /W:%Systemdrive%\usershare /i:%windir%\system32\SHELL32.dll,160Now that it works actually I could just run this:mkdir %systemdrive%\UserShare\%username%Shortcut /f:"%ALLUSERSPROFILE%\sendTo\My UserShare.lnk" /A:c /t:systemdrive%\usershare\%^username%^ /i:%windir%\system32\SHELL32.dll,160Haven't Tested that yet but i think that it will work as long as there is a Folder in UserShare
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