Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running command

Status
Not open for further replies.

warren2600

Programmer
Jun 28, 2004
13
0
0
US
here is some code which works in a .bat file.
i can call it and capture the output.
my question is this...can i skip the .bat file altogether and just encorporate this into my vb app using shell?

here's my bat file:

@echo off
for /f "skip=3 tokens=4" %%a in ('reg.exe query "\\server10\hklm\software\database" /v "dbname"') do @echo %%a

i'm passing variables to the bat file for server and regkey name. I would like to just encorporate all of this into vb if possible.

thanks in advance,
warren
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top