Reading file from home drive/path



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: 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)
  • [UNIX] Security Vulnerabilities in OSF1/Tru64 3.x
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... locally exploitable buffer overflow which allows an attacker to gain root ... The executable is installed setuid root ... September 18, 2002 - Public Disclosure ...
    (Securiteam)

Quantcast