n9mfk9 Posted May 12, 2006 Share Posted May 12, 2006 hi all i have thss vbs code what would it convert to in autoit thanks beau set colVolatileEnvVars = objShell.Environment("Volatile") colVolatileEnvVars("portabledrive") = strdriveletter Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted May 12, 2006 Moderators Share Posted May 12, 2006 hi all i have thss vbs code what would it convert to in autoit thanks beau set colVolatileEnvVars = objShell.Environment("Volatile") colVolatileEnvVars("portabledrive") = strdriveletterNext time you may want to explain what it does, and also provide all the code not just a section. Try this: $oShell = ObjCreate('WScript.Shell') $aPath = StringSplit(@ScriptDir, "\") $sStrDriveLetter = $aPath[1] $oColVolatileEnvVars = $oShell.Environment("Volatile") $oColVolatileEnvVars("portabledrive") = $sStrDriveLetter Link to comment Share on other sites More sharing options...
n9mfk9 Posted May 12, 2006 Author Share Posted May 12, 2006 hi big daddy what i was look for was to get away fom vbs an see if there was a command to do the same thing in autoit beau Link to comment Share on other sites More sharing options...
Valuater Posted May 12, 2006 Share Posted May 12, 2006 hi big daddy what i was look for was to get away fom vbs an see if there was a command to do the same thing in autoitbeauthats what he gave you.... autoit commands/scriptrequires the beta version.. 8) 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