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.
Jump to Post
Dim 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
All 6 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.