GetAttr on pagefile.sys...Invalid Procedure Call or Argument????

I am using VB 6 on an NT Workstation.
Here is the line of code:

lNameAttribute = GetAttr(vcPath & cName) Or viIgnoreAttributes

-  lNameAttribute is a long
-  vcPath & cName = "d:\pagefile.sys"
-  pagefile.sys has the archive attribute set.

It raises the

run time error 5:  Invalid Procedure Call or Argument

error on the GetAttr(vcPath & cName).

Any suggestions?

Thanks in advance!
Preece
LVL 12
PreeceAsked:
Who is Participating?
 
manojaminConnect With a Mentor Commented:
You cannot get the attribute on Pagefile.sys using GetAttr.

Visit this..

http://support.microsoft.com/support/kb/articles/Q200/8/37.ASP
0
 
PreeceAuthor Commented:
Thanks, I had coded for ignoring the pagefile.sys just after I posted the question!  Funny, I dod what Microsoft recommends in that article!

Thanks,
Dan
0
All Courses

From novice to tech pro — start learning today.