Re: vbscript to save file to a folder under user profile
- From: "Franz aRTiglio" <franzgol@xxxxxxxxxxxx>
- Date: Sat, 9 Feb 2008 02:02:43 +0100
Chris wrote:
sorry for my poor scripting knowledge. how does that help me to
define the folder path since it varies based on logon ID? I saw some
profile folders are names under userid and others are in the format
as userid.domainname. If I can get the proper folder name of the
profile as the user logs on then I can specify the path with that
folder variable. Is it the right way to do? how to get there?
Set objWshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo "UserProfile=" & _
objWshShell.Environment("PROCESS")("UserProfile")
WScript.Echo "HomePath=" & _
objWshShell.Environment("PROCESS")("HomeDrive") _
& objWshShell.Environment ("PROCESS")("HomePath")
By the way, open a dos box and enter "set" (no quotes)
you will obtain a partial list of system variables.
.
- Follow-Ups:
- Re: vbscript to save file to a folder under user profile
- From: Pegasus \(MVP\)
- Re: vbscript to save file to a folder under user profile
- References:
- Re: vbscript to save file to a folder under user profile
- From: Pegasus \(MVP\)
- Re: vbscript to save file to a folder under user profile
- From: Chris
- Re: vbscript to save file to a folder under user profile
- Prev by Date: Re: Need help with Window's Zipping facility.
- Next by Date: Re: Help needed... VBScript to determine ALL pst files from users profile
- Previous by thread: Re: vbscript to save file to a folder under user profile
- Next by thread: Re: vbscript to save file to a folder under user profile
- Index(es):
Relevant Pages
|
Loading