Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DIR function

Status
Not open for further replies.

kenndot

Programmer
May 15, 2001
316
US
When I issue this:

DIR myPath

I get all the attributes of each file, datetime, size, etc...

but when i issue this:
dir *.ZIP

I only get the filename. I am looking in the MSDN and am following that, I don't see anywhere that it says that it only returns the name if you issue a specific filetype. Anyone know if there's a setting I'm not using to get these results?

Thanks
 
The DIR command is used to return information on FocPro data files, to receive information on other types of files use the ADIR() command.

Darren

GuiltyMaggot - The best rock band in the world!
 
Kenndot,

DIR works differently, depending on whether you call it from within VFP or from the DOS prompt.

What exactly are you trying to achieve? We might be able to suggest the best way to go about it.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
darren, that was exactly what i needed, thank you i didn't see that function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top