VEE Pro 7.0 free upgrades are now available to those who purchased VEE Pro 6.2 or who have a VEE or DEV Support Contract that was valid on or after March 1, 2004.
If you have registered your VEE 6.2 or VEE Support purchase at < www.agilent.com/find/softwaremanager > but haven't yet requested the 7.0 upgrade, now is the time to go back to the page and request it.
If you haven't yet registered your VEE 6.2 or VEE Support purchase, then please go to the above website, register it, and request your 7.0 upgrade. Be sure to provide accurate shipping information so we can deliver it promptly.
Best Regards,
Nicole Dierksheide Scott Bayes Software Technical Support
Agilent Technologies, Inc. 815 14th Street S.W. Loveland, CO, U.S.A. 80537
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Does anyone know how to extract file property information (Creation Date, attributes etc.) using VEE? I am currently using VEE 6 & Win 98SE.
Regards Chris Hall.
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Say, thanks Mike for jogging my memory. I meant to post documentation on the attributes but I never did. They are (yeah I know it's easy to look at DecodeAttribs but gee) :
R = Read Only //no modify H = Hidden //no show S = System //is system file D = Directory //is directory folder A = Archive //not backed up E = Encrypted //is encrypted N = Normal (not normally seen T = Temporary //fast overwrite Sp = Sparse File //file or stream has "zero holes" Rp = Reparse Point //user specific data tag C = Compressed //is compressed O = Offline //potentially offline Ni = Not Indexed //skipped by indexing service
> I can tell you it works fine in Win98
Yes indeedy. It is in fact pure Win32 - no tricks at all. Feed it whatever you wish and it will match everything it can in the specified directory and give you all the information it can. The one external reliance is related to FileTimeToLocalFileTime. This function only works correctly if your time zone is correctly set up. -SHAWN-
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Thanks Mike and thanks Shawn I can tell you it works fine in Win98
Regards Chris Hall
-----Original Message----- From: Mike Groves [mailto:mikegroves@pacbell.net] Sent: 15 April 2004 23:46 To: VRF Subject: [vrf] RE: Getting File properties
Hi Chris,
A couple of months ago, Shawn left us this great little vbscript program that extracts file information for any directory and collects it in a record array. I'm not sure about Win98, but you can give it a try.
Cheers! Mike Groves
-----Original Message----- From: Chris Hall [mailto:chris.hall@test-engine.co.uk] Sent: Thursday, April 15, 2004 3:21 PM To: VRF Subject: [vrf] Getting File properties
Hi VRF
Does anyone know how to extract file property information (Creation Date, attributes etc.) using VEE? I am currently using VEE 6 & Win 98SE.
Regards Chris Hall.
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Nice Shawn. Is there any easy way to make it export all files on C:(not just those in a single directory) or does it need to be embedded in a loop or two?
Later, R.
Shawn Fessenden <shawn@testech-ltd.com> said:
> > Thanks Mike and thanks Shawn > > Welcome! > > Say, thanks Mike for jogging my memory. I meant to post documentation on the > attributes but I never did. They are (yeah I know it's easy to look at > DecodeAttribs but gee) : > > R = Read Only //no modify > H = Hidden //no show > S = System //is system file > D = Directory //is directory folder > A = Archive //not backed up > E = Encrypted //is encrypted > N = Normal (not normally seen > T = Temporary //fast overwrite > Sp = Sparse File //file or stream has "zero holes" > Rp = Reparse Point //user specific data tag > C = Compressed //is compressed > O = Offline //potentially offline > Ni = Not Indexed //skipped by indexing service > > > I can tell you it works fine in Win98 > > Yes indeedy. It is in fact pure Win32 - no tricks at all. Feed it whatever > you wish and it will match everything it can in the specified directory and > give you all the information it can. The one external reliance is related to > FileTimeToLocalFileTime. This function only works correctly if your time > zone is correctly set up. > -SHAWN- > > > --- > You are currently subscribed to vrf as: wilsonr@ucalgary.ca > To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". > To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". > To send messages to this mailing list, email "vrf@agilent.com". > If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". >
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
> Is there any easy way to make it export all files > on C:(not just those in a single directory) or does > it need to be embedded in a loop or two?
You are correct. While in the FindNextFile loop, for all files that have the Directory attribute set call Dir(<current_path><dir_name>). Unfortunately that's recursion and so isn't easy to implement in VEE.
There were some recursion solutions posted recently but I'd have to look closely at them to see how to apply them to this kind of hierarchical search.
Of course there are a couple of other ways to do the same thing. One of the easiest would probably be to issue "dir <drive>:* /s /n > dir.txt" to the command processor and let it do the work, then parse dir.txt for information. Two drawbacks are you don't get the attribute information and you don't get all the time fields. There are various dir options that will get you all the time fields but I don't think you can get them all at once.
Another solution would be to write the whole thing in VBS or JS and use the script control to run it. There was an example of such posted some time ago though I don't remember the particulars. I do remember quizzing everybody as to why the poster's example was special, and I think it was one of Warren, Bill or Georg that first mentioned recursivity.
I'm in the middle of something at the moment, but I'll look up the related messages and repost the example if I can find it later. It used the FSO I think, and one should be able to glean all the file info from it. If I remember correctly, it was in response to a question about passing parameters to a script control function. -SHAWN-
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
> Is there any easy way to make it export all files > on C:(not just those in a single directory) or does > it need to be embedded in a loop or two?
You are correct. While in the FindNextFile loop, for all files that have the Directory attribute set call Dir(<current_path><dir_name>). Unfortunately that's recursion and so isn't easy to implement in VEE.
There were some recursion solutions posted recently but I'd have to look closely at them to see how to apply them to this kind of hierarchical search.
Of course there are a couple of other ways to do the same thing. One of the easiest would probably be to issue "dir <drive>:* /s /n > dir.txt" to the command processor and let it do the work, then parse dir.txt for information. Two drawbacks are you don't get the attribute information and you don't get all the time fields. There are various dir options that will get you all the time fields but I don't think you can get them all at once.
Another solution would be to write the whole thing in VBS or JS and use the script control to run it. There was an example of such posted some time ago though I don't remember the particulars. I do remember quizzing everybody as to why the poster's example was special, and I think it was one of Warren, Bill or Georg that first mentioned recursivity.
I'm in the middle of something at the moment, but I'll look up the related messages and repost the example if I can find it later. It used the FSO I think, and one should be able to glean all the file info from it. If I remember correctly, it was in response to a question about passing parameters to a script control function. -SHAWN-
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
VEE Pro 7.0 free upgrades are now available to those who purchased VEE Pro 6.2 or who have a VEE or DEV Support Contract that was valid on or after March 1, 2004.
If you have registered your VEE 6.2 or VEE Support purchase at < www.agilent.com/find/softwaremanager > but haven't yet requested the 7.0 upgrade, now is the time to go back to the page and request it.
If you haven't yet registered your VEE 6.2 or VEE Support purchase, then please go to the above website, register it, and request your 7.0 upgrade. Be sure to provide accurate shipping information so we can deliver it promptly.
Best Regards,
Nicole Dierksheide
Scott Bayes
Software Technical Support
Agilent Technologies, Inc.
815 14th Street S.W.
Loveland, CO, U.S.A. 80537
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".