Environment Variables 
Author Message
 Environment Variables

Can we use Environment Variables in VBScript like we can in VB

Environ$("AllUsersProfile")



Tue, 15 Apr 2003 00:58:08 GMT  
 Environment Variables
Get the WSH documents. See ExpandEnvironmentStrings ().

--
Dominic

Read The Docs? http://msdn.microsoft.com/scripting


Quote:
> Can we use Environment Variables in Vbscript like we can in VB

> Environ$("AllUsersProfile")



Tue, 15 Apr 2003 01:18:22 GMT  
 Environment Variables

Next question.. Is there a way to run this script in IE (I am on 5.0) so it
doesn't show the security msgbox?


Quote:
> Get the WSH documents. See ExpandEnvironmentStrings ().

> --
> Dominic

> Read The Docs? http://msdn.microsoft.com/scripting



> > Can we use Environment Variables in Vbscript like we can in VB

> > Environ$("AllUsersProfile")



Tue, 15 Apr 2003 01:19:32 GMT  
 Environment Variables

You must modify the IE security for your page so that all the settings are
minimal. You really have to be working with an Intranet for this to be
feasible.

--
Dominic

Read The Docs? http://msdn.microsoft.com/scripting


Quote:
> Next question.. Is there a way to run this script in IE (I am on 5.0) so
it
> doesn't show the security msgbox?



> > Get the WSH documents. See ExpandEnvironmentStrings ().

> > --
> > Dominic

> > Read The Docs? http://msdn.microsoft.com/scripting



> > > Can we use Environment Variables in Vbscript like we can in VB

> > > Environ$("AllUsersProfile")



Tue, 15 Apr 2003 01:45:48 GMT  
 Environment Variables

Excatly where I plan to put it.. Thank you


Quote:
> You must modify the IE security for your page so that all the settings are
> minimal. You really have to be working with an Intranet for this to be
> feasible.

> --
> Dominic

> Read The Docs? http://msdn.microsoft.com/scripting



> > Next question.. Is there a way to run this script in IE (I am on 5.0) so
> it
> > doesn't show the security msgbox?



> > > Get the WSH documents. See ExpandEnvironmentStrings ().

> > > --
> > > Dominic

> > > Read The Docs? http://msdn.microsoft.com/scripting



> > > > Can we use Environment Variables in Vbscript like we can in VB

> > > > Environ$("AllUsersProfile")



Tue, 15 Apr 2003 01:48:08 GMT  
 Environment Variables

How can I access system environment variables, such as username from my vb
script?

Thanks.



Sat, 19 Apr 2003 23:50:27 GMT  
 Environment Variables
Get the WSH documentation, look for ExpandEnvironmentStrings.

--
Dominic

Read The Docs? http://msdn.microsoft.com/scripting



Quote:
> How can I access system environment variables, such as username from my vb
> script?

> Thanks.



Mon, 21 Apr 2003 04:56:14 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. environment variables: wshshell.environment or wshshell.expandenv ironmentstrings?

2. Creating and environment variable and using it in the same cmd window

3. Environment variables in postscript templates

4. Getting Environment Variables

5. Environment Variables

6. Using RedMon environment variables to get original Document Name

7. Environment Variable Reporting

8. Environment variables

9. Get Environment Variables from NT Server

10. Accessing Environment Variables from DHTML?

11. Environment Variables in Outlook agent

12. Client PC Environment Variables

 

 
Powered by phpBB® Forum Software