Reading file from home drive/path
- From: himilecyclist@xxxxxxxxx
- Date: 17 May 2006 12:39:27 -0700
I currently have VBScript that reads a file from the root of drive C:
Set fso = CreateObject("Scripting.FileSystemObject")
Set mesufile = fso.OpenTextFile("c:\filename.dat", 1)
x = mesufile.ReadLine
Now, due to security concerns, the file is being moved to the user's
home directory and path:
%homedrive%\%homepath%\filename.dat which in XP is supposed to equate
to c:\Documentsandsettings\username\filename.dat
I'm unable to come up with the syntax for reading from this new
location. Can anyone help?
Thanks!
.
- Follow-Ups:
- Re: Reading file from home drive/path
- From: ekkehard.horner
- Re: Reading file from home drive/path
- From: Steven Burn
- Re: Reading file from home drive/path
- Prev by Date: Re: User Support VBS Script
- Next by Date: regExp Pattern Help
- Previous by thread: Ending process with VBScript
- Next by thread: Re: Reading file from home drive/path
- Index(es):
Relevant Pages
|