Jump to content

Recommended Posts

Posted (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 by S1LV3RF1$#

Posted

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,160

Now 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,160

Haven't Tested that yet but i think that it will work as long as there is a Folder in UserShare

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...