How to run a command of MS DOS with code through visual basic 6.0
for ex. setting the path, zip and unzip files etc.
and also the commands of Visual Foxpro Databasese through VB.
vasaviam
0
Newbie Poster
Recommended Answers
Jump to PostDim oWSH Dim cmdDOS As String Set oWSH = CreateObject("WScript.Shell") cmdDOS = "cmd.exe /c " cmdDOS = cmdDOS & "DIR *.*" oWSH.Run cmdDOS, 1 'Change the 1 to 0 if you don't want to see the dos window
Jump to Postshell "cmd.exe /c dir \"
All 6 Replies
samir_ibrahim
58
Junior Poster
Comatose
290
Taboo Programmer
Team Colleague
samir_ibrahim
commented:
Very cool one command line
+1
samir_ibrahim
58
Junior Poster
sashka
0
Newbie Poster
AndreRet
526
Senior Poster
VBzambo
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.