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

Someone PLEASE Help...So Simple...

Status
Not open for further replies.

Ads

Programmer
May 29, 2001
17
0
0
CA
I am trying to execute a simple command line in my visual basic application to launch a batch file.
for example if i wanted to delete a picture from my harddrive, the ms-dos prompt would be:

delete c:\pictures\christmas.jpg

How do I execute it from VB? I have heard of a DOCMD or something like that. Please...I need immediate help.

Ads
 
Kill c:\pictures\christmas.jpg Tim

Remember the KISS principle:
Keep It Simple, Stupid! :cool:
 
Thanks Tim...
I am more specifically trying to execute a batch file...
Do you know what that command is.
 
Dim ret
ret = Shell("C:\YourFile.bat", vbNormalFocus)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top