I'm trying to look at the contents of a directory to find a set of related files. The files all have the same format for the file names and match up until the last few characters that are a suffix. Like this; E1234A_ZZ12345678_LIN E1234A_ZZ12345678_VIN E1234A_ZZ12345678_DIN E1234A_ZZ87654321_LIN E1234A_ZZ87654321_VIN E1234A_ZZ87654321_DIN What I want to do is find all of the files on group E1234A_ZZ12345678
So I'm building the command line in a formula box and it comes out as ; "DIR H:modelTestDataQueE1234A_12345678*" <---- using the * meta-character. This works if I do it from a DOS command line. It returns the whole file set. However, when I try it in a VEE EXECUTE PC box, I get this error from the EXECUTE; File 'E1234A_12345678*' was not found. It appears to be using the * as a literal not a meta-character. Isn't that possible in VEE ?
The second problem may be caused by the first but I'm not sure. Since I can't read the list back from the std out as in UNIX, I am trying to re-direct (pipe) the list to a file; "C:TEMPFILE_LIST.TXT" Inside the command building formula block it looks like this; "DIR "+A+B+"* > C:TEMPFILE_LIST.TXT" where A is the path "H:modelTestDataQue" and B is the file name base "E1234A_12345678" This gives me error 625 in the formula block; "Illegal escape sequence". Again, this works from the DOS command line although it gives me a lot of other information in the file that I'll have to parse out to get just the file names.
Does anyone have insight into either of these problems. Thanks in advance for sharing your expertise.
Drew_Harrison@Agilent.com
--------------------------------------------------------------------- This is the "vrf" maillist, managed by Majordomo. To send messages to this maillist, just email to "vrf@lvld.hp.com". Subscriptions and unsubscriptions are done through the address "vrf-request@lvld.hp.com". If you need details, just send a message containing the text "help" to "vrf-request@lvld.hp.com". ---------------------------------------------------------------------
If you use NT I know that while using the 'execute PC' box you do not have the long file names. You have to activate the command processor before (that is 'cmd.exe' with win NT and 'command.com' with win9x. So your command in the vee execute pc box should look like "cmd /c dir H:\model\..." remember to use double backslashes inside a vee string
Georg Nied Software-Development Hansestr.7 - 51149 Cologne Germany Mail: gn-software@gmx.de
-----Original Message----- From: owner-vrf@hplvlrx.lvld.hp.com [mailto:owner-vrf@hplvlrx.lvld.hp.com]On Behalf Of drew_harrison@Agilent.com Sent: Wednesday, December 29, 1999 2:30 AM To: vrf@lvld.hp.com Subject: vrf: DOS DIR command errors from VEE
I'm trying to look at the contents of a directory to find a set of related files. The files all have the same format for the file names and match up until the last few characters that are a suffix. Like this; E1234A_ZZ12345678_LIN E1234A_ZZ12345678_VIN E1234A_ZZ12345678_DIN E1234A_ZZ87654321_LIN E1234A_ZZ87654321_VIN E1234A_ZZ87654321_DIN What I want to do is find all of the files on group E1234A_ZZ12345678
So I'm building the command line in a formula box and it comes out as ; "DIR H:modelTestDataQueE1234A_12345678*" <---- using the * meta-character. This works if I do it from a DOS command line. It returns the whole file set. However, when I try it in a VEE EXECUTE PC box, I get this error from the EXECUTE; File 'E1234A_12345678*' was not found. It appears to be using the * as a literal not a meta-character. Isn't that possible in VEE ?
The second problem may be caused by the first but I'm not sure. Since I can't read the list back from the std out as in UNIX, I am trying to re-direct (pipe) the list to a file; "C:TEMPFILE_LIST.TXT" Inside the command building formula block it looks like this; "DIR "+A+B+"* > C:TEMPFILE_LIST.TXT" where A is the path "H:modelTestDataQue" and B is the file name base "E1234A_12345678" This gives me error 625 in the formula block; "Illegal escape sequence". Again, this works from the DOS command line although it gives me a lot of other information in the file that I'll have to parse out to get just the file names.
Does anyone have insight into either of these problems. Thanks in advance for sharing your expertise.
Drew_Harrison@Agilent.com
--------------------------------------------------------------------- This is the "vrf" maillist, managed by Majordomo. To send messages to this maillist, just email to "vrf@lvld.hp.com". Subscriptions and unsubscriptions are done through the address "vrf-request@lvld.hp.com". If you need details, just send a message containing the text "help" to "vrf-request@lvld.hp.com". ---------------------------------------------------------------------
--------------------------------------------------------------------- This is the "vrf" maillist, managed by Majordomo. To send messages to this maillist, just email to "vrf@lvld.hp.com". Subscriptions and unsubscriptions are done through the address "vrf-request@lvld.hp.com". If you need details, just send a message containing the text "help" to "vrf-request@lvld.hp.com". ---------------------------------------------------------------------
files.
The files all have the same format for the file names and match up until the
last few characters that are a suffix.
Like this;
E1234A_ZZ12345678_LIN
E1234A_ZZ12345678_VIN
E1234A_ZZ12345678_DIN
E1234A_ZZ87654321_LIN
E1234A_ZZ87654321_VIN
E1234A_ZZ87654321_DIN
What I want to do is find all of the files on group E1234A_ZZ12345678
So I'm building the command line in a formula box and it comes out as ;
"DIR H:modelTestDataQueE1234A_12345678*" <---- using the * meta-character.
This works if I do it from a DOS command line. It returns the whole file set.
However, when I try it in a VEE EXECUTE PC box, I get this error from the
EXECUTE;
File 'E1234A_12345678*' was not found.
It appears to be using the * as a literal not a meta-character.
Isn't that possible in VEE ?
The second problem may be caused by the first but I'm not sure.
Since I can't read the list back from the std out as in UNIX, I am trying to
re-direct (pipe) the list to a file; "C:TEMPFILE_LIST.TXT"
Inside the command building formula block it looks like this;
"DIR "+A+B+"* > C:TEMPFILE_LIST.TXT"
where A is the path "H:modelTestDataQue"
and B is the file name base "E1234A_12345678"
This gives me error 625 in the formula block; "Illegal escape sequence".
Again, this works from the DOS command line although it gives me a lot of other
information in the file that I'll have to parse out to get just the file names.
Does anyone have insight into either of these problems.
Thanks in advance for sharing your expertise.
Drew_Harrison@Agilent.com
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.hp.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.hp.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.hp.com".
---------------------------------------------------------------------