Alexandre Posted May 25, 2010 Share Posted May 25, 2010 Hello I need some help for this. I just set a system var to machine like Var Server value teste And i need a scritp that map a network drive like this runwait ("I:", "\\%server%\cid") and i'm stuck one this. Any help Link to comment Share on other sites More sharing options...
Alexandre Posted May 25, 2010 Author Share Posted May 25, 2010 Sry Hello I need some help for this. I just set a system var to machine like Var Server value teste And i need a scritp that map a network drive like this mapdriveadd ("I:", "\\%server%\cid") and i'm stuck one this. Any help Link to comment Share on other sites More sharing options...
omikron48 Posted May 25, 2010 Share Posted May 25, 2010 You can use the "net use" command in Windows to map network shares to drive letters. linkUsing that, you can just make a function that plugs in the values you want in a "net use" call. Link to comment Share on other sites More sharing options...
99ojo Posted May 26, 2010 Share Posted May 26, 2010 Hi, this should work: ;Get environment variable %server% $server = EnvGet ("Server") ; if %server% = teste DriveMapAdd ("I:", "\\" & $server & "\cid") ;-)) Stefan Link to comment Share on other sites More sharing options...
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