Duran Posted July 13, 2007 Share Posted July 13, 2007 I was wondering Since I have been using Auto it I havent been able to figure out how to use System Varibles inside the scripts I write. Is there a way to use System varibles inside FileOpen and other functions? or do I have to create a Varible to have it use it specially instead of straight up using it inside the functions. If I could get a quick answer that would be great! Thanks Duran. Link to comment Share on other sites More sharing options...
fu2m8 Posted July 13, 2007 Share Posted July 13, 2007 I was wondering Since I have been using Auto it I havent been able to figure out how to use System Varibles inside the scripts I write. Is there a way to use System varibles inside FileOpen and other functions? or do I have to create a Varible to have it use it specially instead of straight up using it inside the functions. If I could get a quick answer that would be great! Thanks Duran. EnvGet is what your after I think assuming by system you mean environment variables. Copied from the helpfile: $var = EnvGet("PATH") MsgBox(4096, "Path variable is:", $var) Link to comment Share on other sites More sharing options...
Duran Posted July 13, 2007 Author Share Posted July 13, 2007 Yeah environment variables is what I am after. Link to comment Share on other sites More sharing options...
Duran Posted July 13, 2007 Author Share Posted July 13, 2007 Still kind of confused how do I get the EnvGet functions to work in a DirCopy function or a DirCreate Function Sorry if this seems newbish Thanks Duran Link to comment Share on other sites More sharing options...
xcal Posted July 13, 2007 Share Posted July 13, 2007 Sounds like you're having issues connecting strings and variables. Ex: $variable = 'my variable' MsgBox(0, '', 'this is a string and this is ' & $variable) ;connect them using & How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
fu2m8 Posted July 13, 2007 Share Posted July 13, 2007 Sounds like you're having issues connecting strings and variables. Ex: $variable = 'my variable' MsgBox(0, '', 'this is a string and this is ' & $variable) ;connect them using & a few more examples: $userTempPath = EnvGet("TEMP") ;stores the users temp directory i.e C:\Documents and Settings\username\Local Settings\temp MsgBox(0, "Example 1", "Users temp path is: " & $userTempPath) ;example 1 using a variable MsgBox(0, "Example 2", "Your computer name is: " & EnvGet("COMPUTERNAME")) ;example 2 calling the function directly DirCreate($userTempPath & "\test123") ;creates a folder called test123 under the users temp directory Link to comment Share on other sites More sharing options...
Duran Posted July 13, 2007 Author Share Posted July 13, 2007 Thanks guys that has helped alot. I am currently developing a Post Ops tool for my work and since Auto it is easier then having to write it all in VB or other scripting programs it has already done so much for me ^^ thanks again Duran. 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