Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

'Dir' function must first be called with a 'PathName' argument 

An initial call to the Dir function does not include the PathName argument. The first call to Dir must include a PathName, but subsequent calls to Dir do not need to include parameters to retrieve the next item.

To correct this error

  • Supply a PathName argument in the function call.

See Also

Reference

Dir Function

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft