Your solution might be something like:
{code]
progid = Shell("cmd.exe " & varMyVariable, vbNormalFocus)
[/code]
Per the MSDN Library, the first paramater to the Shell function ("pathname") is described as"
[highlight] pathname Required; Variant (String). Name of the program to execute and any required arguments or command-line switches; may include directory or folder and drive.
[/highlight]
kindof......I am calling the command prompt, I do a sendkeys function to start an ftp program......after this I am prompted for a username and password which was asked for earlier in the VB programming. can I still use the username and password by putting it in the shell command?
Generate a .BAT file in the VB prog, then shell to that
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?' Essex Steam UK for steam enthusiasts
Do a keyword search on 'console' in this forum. There are a number of approaches covered, from the relatively trivial (leveraging the script host's ability to read and write STDIN and STDOUT) to the relatively complex, involving allocation of a console window, redirection of inherited redirection of STDIN and STDOUT, and self-patching the compiled EXE ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.