how to call system command from VB?

  • Thread starter Thread starter jim
  • Start date Start date
J

jim

Hi all,

I have a very old utility which is DOS command, I want to call it from
VB code. How can I call this from VB? Anyone can help I very
appreciate.
 
Hi all,

I have a very old utility which is DOS command, I want to call it from
VB code. How can I call this from VB? Anyone can help I very
appreciate.

You should be able to use the shell command, or
System.Diagnostics.Process.
 
when I use ShellId = Shell(CommandLine, vbNormalFocus)

I got compile error: expected variable or procedure, not module
 
Thanks all very much. I know the problem to use shell. because there is
another module that someone define the name is Shell, so I can't use
shell command.

Thanks everyone again.
 
jim said:
I know the problem to use shell. because there is
another module that someone define the name is Shell, so I can't use
shell command.

Simply use 'Interaction.Shell'...
 
Back
Top