Hi,
I extracted a part of one of my progs, which uses ScriptingFSO and Shell
Automation to look for drives,folders or files. Maybe you'll find it usefull.
Best regards
Christian
> I know this question has been posted before but I cannot find it in my
> archives.
> I want to search for a file in a directory to see if it exists. I don't
> want to use the file name selection prompt, I want to search with a filename
> that I will supply as a variable.
> Thanks in advance
> Ross
BIOTRONIK GmbH & Co.
EIT-1/CW
D 12359 Berlin - Neuklln
Tel.: +49 30 689 05 - 301
--------------------------------------
christian.wienhold@biotronik.de
--------------------------------------
I extracted a part of one of my progs, which uses ScriptingFSO and Shell
Automation to look for drives,folders or files. Maybe you'll find it usefull.
Best regards
Christian
> I know this question has been posted before but I cannot find it in my
> archives.
> I want to search for a file in a directory to see if it exists. I don't
> want to use the file name selection prompt, I want to search with a filename
> that I will supply as a variable.
> Thanks in advance
> Ross
BIOTRONIK GmbH & Co.
EIT-1/CW
D 12359 Berlin - Neuklln
Tel.: +49 30 689 05 - 301
--------------------------------------
christian.wienhold@biotronik.de
--------------------------------------
R&D could try to maintain the current (undocumented) behaviour while working on new VEE features or fixing defects, at least if they knew customers depended on it. But there could be cases where it's a necessity to change the behaviour in order to add the feature or fix.
If that happened, you might find it very difficult to get your program working again in the new revision, and we might not be able to help you much.
P 67 of the English version of the User's Guide actually mentions: "Propagation through a program is _not_ determined by the geographic locations of the objects in the program...". So although it has been observed by some that in many cases threads that start in the northwest corner seem to begin execution first, it's probably not consistent. And it's not guaranteed that they'll complete execution before other threads do.
When in doubt, use Sequence to enforce execution order. When not in doubt, let data flow work to your advantage, and leave out the sequence connections.
Regards to all,
Scott Bayes
Software Technical Support
Agilent Technologies, Inc.
815 14th Street S.W.
Loveland, CO, U.S.A. 80537
970 679 3799 Tel
970 635 6867 Fax
> -----Original Message-----
> From: bill.ossmann@philips.com [mailto:bill.ossmann@philips.com]
> Sent: Friday, May 16, 2003 7:50 AM
> To: VEE vrf
> Subject: [vrf] Re: Strange Thread Flow Example.vee
>
>
> Mike,
>
> I don't think that execution order based on block position is
> guaranteed. Any time I need to guarantee execution order I
> use sequence lines. Most of the time data flow takes care of
> sequencing, so don't overuse the sequence lines, but there
> are some times
> when they are necessary. Typical examples are variable
> initialization and passing data to control input pins.
>
> Even if position related execution order is consistent
> behavior I wouldn't want to rely on it in the face of future
> enhancements to a program by me or by somebody else who might
> move the blocks around. Also Agilent could break the link in a future
> release. After all, the execution sequencer doesn't need to
> know anything about the physical positions of the blocks in
> order to operate as documented; it's probably just the order
> in which some internal list happens to be generated.
>
> Regards,
> --
> Bill Ossmann
> Philips Ultrasound
> e-mail: bill.ossmann@philips.com
>
>
>
>
> To:
> "VEE vrf" <vrf@it.lists.it.agilent.com>
> cc:
> (bcc: Bill Ossmann/ANR/MS/PHILIPS)
> Subject:
> [vrf] Re: Strange Thread Flow Example.vee
>
> "Michael Asbery" Classification:
> <Michael.Asbery@nrl.navy.
> mil>
>
> 05/16/2003 08:28 AM
> Please respond to
> "Michael Asbery"
>
>
>
>
>
>
> Andrew,
>
> As Georg points out, running each thread independently would
> work. The actual object priority, is that Vee executes
> objects left to right, top to bottom. Thus to get a
> particular thread to fire first, begin the thread in the
> Left, Top corner of your
> program. I take advantage of this by putting my initialize
> variables threads in this location so that I can be assured
> everything is initialized before I start using them later in
> the program.
>
> Mike
>
>
> ***********************************************************
> Michael N. Asbery, NRL Code 5733.20, (202)404-3014, DSN 754-3014
> michael.asbery@nrl.navy.mil fax (202)404-7661
> ***********************************************************
>
>
>
>
> ---
> You are currently subscribed to vrf as: scott_bayes@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@it.lists.it.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@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
I use a lot of independent threads and routinely have variable
initialization problems due to the order in which they start. Initially
I tried using the left-right, top-bottom position technique but had
enough self imposed difficulties to cause me to switch over to an
"initialization flag" with associated test code at the beginning of each
thread. Even this wasn't enough - now I precede the test code with a
delay to make sure the initialization flag has been set. It would be
nice to have a means for forcing a particular thread to run first and to
completion before any other threads start.
Barrie
---
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@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Simply use the "From File" object, add the Error output control pin to
it, add another control input pin for your filename and finally add a
"Close" transaction into it. If the Error pin fires out with 700, it's
a "file not found".
Regards,
Pierre
>>> Ross Bledsoe <RBLEDSOE@Coinco.com> 05/16/03 12:04PM >>>
I know this question has been posted before but I cannot find it in my
archives.
I want to search for a file in a directory to see if it exists. I
don't
want to use the file name selection prompt, I want to search with a
filename
that I will supply as a variable.
Thanks in advance
Ross
---
You are currently subscribed to vrf as:
Pierre.Mousseau@mont.mitectelecom.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@it.lists.it.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@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
When I first read your question, I thought you were looking for a quick
way to check if a file exists in a "particular" directory.
In case of a 'search' capability through an entire disk, I used Shaun
Trussler's recommendation successfully.
Regards,
Pierre
>>> <Shaun.Trussler@nokia.com> 05/16/03 01:44PM >>>
Hi Ross:
Something like the attached works with VEE 6.0. There is some
more info in the dirlist.vee file in AgilentVEE Pro
6.0examplesEscapes.
Regards,
Shaun Trussler
-----Original Message-----
From: ext Ross Bledsoe [mailto:RBLEDSOE@Coinco.com]
Sent: Friday, May 16, 2003 9:05 AM
To: VEE vrf
Subject: [vrf] Display directory files
I know this question has been posted before but I cannot find it in my
archives.
I want to search for a file in a directory to see if it exists. I
don't want to use the file name selection prompt, I want to search with
a filename that I will supply as a variable.
Thanks in advance
Ross
---
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@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".