14 replies
by xnavydk Accepted solution
by cmiller5400 Accepted solution
by xnavydk Accepted solution
by jiminpa Accepted solution
When a string is enclosed by % it tells the system that this is an environmet variable.
Your environment varibles are viewable by right clicking My Computer -> Select Properites -> Click the advanced tab -> then click the environment varibles button.
Edited to insert a missed step.
by xnavydk Accepted solution
Thanks to you both
I really need to go to school for this stuff. Learning to be a network admin on the fly is proving to be quite a handful
by captbilly1eye Accepted solution
Ya left out a step:
Right-click My Computer -> Select Properties -> Click the Advanced Tab -> Then click the Environment Variables button.
I got it and I'll bet the OP got it, but ya never know who may stumble across it down the road.
;-)
BTW... good advice. You deserve a thumb and so does the previous respondent.
by jiminpa Accepted solution
by xnavydk Accepted solution
by xnavydk Accepted solution
by jiminpa Accepted solution
by xnavydk Accepted solution
by dumphrey Accepted solution
example:
net use H: "\\192.168.1.200\Home Folders\%username%\" /persistent:yes
Would map the users home folder from a server to the H drive on their machine, and keep it through reboots.
you can replace %username% with any user name and it will work if the user running the script as permissions to access the share.
another example
cd %homepath%
is the same as
cd c:\Documents and Settings\UserA
or
cd c:\Documents and Settings\%username%
a decent list of them online:
by xnavydk Accepted solution
does this mean that it will be available after logoff?
Thanks a lot, I have learned too much today, I have a headache.. LOL
by ic-it Accepted solution
It will still be available for that user when they logon again. It will not be there for another user.
In this case persistent means that if you ran the script just once, the drive mapping should remain until removed.
Persistent: no would remove the mapping on a restart (unless the script is still there, then it would map it for 1 more use).
This discussion is closed to new replies.
Trending Networks posts
Sort by Trending