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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i execute a command line function from VB

Status
Not open for further replies.

patchkit

IS-IT--Management
Nov 20, 2001
17
US
Here goes. I need to record a user name and ip info to a text file. from a command line i would just type echo %username% >> textfile.txt etc.

I want to be able to run that command and a few other when a user clicks OK in the VB form. I know that ther eis a pretty simple way to do this, but i cannot find it in the MSDN. Thanks for any help.
 
You can use the shell function. In VB, there are better ways to write data to a text file.
 
Yeah, i found it 'enviroment.username'. Thanks though for that, it will come in handy later and thank you very much for the reply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top