Sign in to follow this  
Followers 0
n9mfk9

Need To Change Frum Vbs To Autoit

4 posts in this topic

hi all i have thss vbs code what would it convert to in autoit thanks beau

set colVolatileEnvVars = objShell.Environment("Volatile")

colVolatileEnvVars("portabledrive") = strdriveletter

Share this post


Link to post
Share on other sites



hi all i have thss vbs code what would it convert to in autoit thanks beau

set colVolatileEnvVars = objShell.Environment("Volatile")

colVolatileEnvVars("portabledrive") = strdriveletter

Next 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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

thats what he gave you.... autoit commands/script

requires the beta version..

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0