Reading file from home drive/path

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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!

.



Relevant Pages

  • RE: Linux hacked
    ... Subject: Linux hacked ... After you boot up into the OS running from CD, ... >> First let me say I'm a security novice. ... >> been unsuccessful in getting root back. ...
    (Security-Basics)
  • Re: Screensaver takes too much time to fade-out...
    ... If you are serious about making your machine secure, ... learn a thing or two about security. ... These logs are mailed to the root user at 3am. ... Setup dovecot and use a local email client to fetch it. ...
    (Fedora)
  • Re: Linux hacked
    ... is to boot your system with a separate ... You can't trust the logs, ... >> First let me say I'm a security novice. ... >> been unsuccessful in getting root back. ...
    (Security-Basics)
  • RE: Linux hacked
    ... Also, what exactly did the history file show, can you paste it into a mail ... > First let me say I'm a security novice. ... > been unsuccessful in getting root back. ... > via ssh but you could su in once logged in as one of three users. ...
    (Security-Basics)
  • Re: [security bulletin] HPSBTU02211 SSRT071326 rev.1 - HP Tru64 UNIX Running the dop command, Lo
    ... HP Software Security Response Team ... UNIX Operating System running the dop command. ... privileges of the root user. ... echo "HP Security bulletin code identification: ...
    (Bugtraq)