G
George Quitugua
I'm trying to check to see if a file exists in Users
Profile folder in Windows 2000 (i.e. Docs &
Settin....\User\Folder - Users are using roaming profiles)
but am running into errors when trying to specify the
current user logged in. I'm trying to use %username% in
the following code:
If (Fsys.FolderExists("c:\winnt")) Then
TextFile = "c:\winnt\profiles\%UserName%\My
Documents\file.txt"
Else
TextFile = "C:\Documents and Settings\%UserName%\My
Documents\file.txt"
Also....should I be using %systemroot% instead of c:\winnt?
Any help is appreciated.
Thanks,
GQ
Profile folder in Windows 2000 (i.e. Docs &
Settin....\User\Folder - Users are using roaming profiles)
but am running into errors when trying to specify the
current user logged in. I'm trying to use %username% in
the following code:
If (Fsys.FolderExists("c:\winnt")) Then
TextFile = "c:\winnt\profiles\%UserName%\My
Documents\file.txt"
Else
TextFile = "C:\Documents and Settings\%UserName%\My
Documents\file.txt"
Also....should I be using %systemroot% instead of c:\winnt?
Any help is appreciated.
Thanks,
GQ