Clarifications...
> Sigh! As I final note I suppose I should mention the upcoming change.
> The end of the 32-bit world will soon be upon us, and when that happens
> and VEE goes 64-bit regretfully a lot of the examples I've posted over
> the last
Oh my! That kinda looks like I'm saying I have some kind of insider info.
What I meant is that the Windows world is going 64-bit, and eventually VEE
will be forced to also. I'm sure the change will be at least a few years in
the future, but it will be coming none the less.
Also, I inadvertently left LoadLibs and DelLibs in that version of
GetVersionEx2 that I posted. You may wonder why since they're never called,
and well you may. Spoof replaced 'em both, and they can be deleted. I forgot
to do so.
-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@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
> Sigh! As I final note I suppose I should mention the upcoming change.
> The end of the 32-bit world will soon be upon us, and when that happens
> and VEE goes 64-bit regretfully a lot of the examples I've posted over
> the last
Oh my! That kinda looks like I'm saying I have some kind of insider info.
What I meant is that the Windows world is going 64-bit, and eventually VEE
will be forced to also. I'm sure the change will be at least a few years in
the future, but it will be coming none the less.
Also, I inadvertently left LoadLibs and DelLibs in that version of
GetVersionEx2 that I posted. You may wonder why since they're never called,
and well you may. Spoof replaced 'em both, and they can be deleted. I forgot
to do so.
-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@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
<font size=2 face="sans-serif">Hi!</font>
<font size=2 face="sans-serif">I want to use the Execute Program (PC) object to run a command like (Ipconfig) to see the IP address of my PC. How can I send the results to a file. I am asking because the execution is so fast that there is no chance to see the results on the screen.</font>
<font size=2 face="sans-serif">Any feedback would be appreciated. </font>
<font size=2 face="sans-serif">Majed Ali</font>---You are currently subscribed to vrf as: rsb@soco.agilent.comTo 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".
<font size=2 face="sans-serif">Hi!</font>
<font size=2 face="sans-serif">I want to use the Execute Program (PC) object to run a command like (Ipconfig) to see the IP address of my PC. How can I send the results to a file. I am asking because the execution is so fast that there is no chance to see the results on the screen.</font>
<font size=2 face="sans-serif">Any feedback would be appreciated. </font>
<font size=2 face="sans-serif">Majed Ali</font>---You are currently subscribed to vrf as: rsb@soco.agilent.comTo 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".
>> set ws = CreateObject("MSWinsock.Winsock" );
>> ws.LocalIP
>Don't forget to delete ws when you're done with it.
Shawn,
If the variable (ws) is local to context, library or a global then deleting it explicitly is straight forward. If the variable is just a formula output pin though, its scope is local to that formula box and will automatically be deleted on exiting the formula won't it?
I can't find a VEE equivalent to 'set ws = nothing'
Rich
---
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".
>> set ws = CreateObject("MSWinsock.Winsock" );
>> ws.LocalIP
>Don't forget to delete ws when you're done with it.
Shawn,
If the variable (ws) is local to context, library or a global then deleting it explicitly is straight forward. If the variable is just a formula output pin though, its scope is local to that formula box and will automatically be deleted on exiting the formula won't it?
I can't find a VEE equivalent to 'set ws = nothing'
Rich
---
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".
> Hi!
>
> I want to use the Execute Program (PC) object to run a command
> like (Ipconfig) to see the IP address of my PC. How can I send the results
> to a file. I am asking because the execution is so fast that there is no
> chance to see the results on the screen.
Others have answered your specific question but I'll chime in with
some more general notes:
IO redirection uses std piping symbols and works fine for any applications
that support it.
ipconfig -all > myinfo.txt writes output to file myinfo.txt,
_overwriting_ the file
set >> myinfo.txt writes environment settings to the file myinfo.txt
_appending_ the data to the end of the file
set | more writes the output of the process "set" to the input
of the process "more"
However note that redirection is NOT a function of the OS itself but rather
of the shell. Hence you can't just execute these commands in the
"execute program" object since it doesn;t invoke a shell. Instead
you need to explicitly invoke a shell to run these commands.
so rather having Execute Prohram" run
ipconfig -all > myinfo.txt
you'll have it run
cmd /C "ipconfig -all > myinfo.txt"
This brings up a shell ("cmd") and tells it to run the ipconfig command.
Note that this is only necessary when executing programs that require
shell functions. So for instance bringing up another copy of
VEE would not need to invoke a shell.
regards
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@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".
Yup. The command line is sadly ignored in these days of gee-wiz active x
controls and whatnot. Stan's advice can be made to work across all Windows
platforms by constructing the command with a ToString & getEnv:
WRITE TEXT getEnv("comspec") + " /c " + <whatever> EOL
-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@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Yup. The command line is sadly ignored in these days of gee-wiz active x
controls and whatnot. Stan's advice can be made to work across all Windows
platforms by constructing the command with a ToString & getEnv:
WRITE TEXT getEnv("comspec") + " /c " + <whatever> EOL
-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@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".