Link to home
Start Free TrialLog in
Avatar of Preece
PreeceFlag for United States of America

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of manojamin
manojamin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Preece

ASKER

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