n9mfk9 Posted May 12, 2006 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
Moderators big_daddy Posted May 12, 2006 Moderators 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
n9mfk9 Posted May 12, 2006 Author 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
Valuater Posted May 12, 2006 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)
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