Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to execute a DOS command
Message
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00806685
Message ID:
00806698
Views:
23
Hi,

The Shell Function in VB "Runs an executable program and returns a Variant (Double) representing the program's task ID if successful, otherwise it returns zero."

But it doesnt runs a DOS command, for example:

I've created a Form with a button

sub Command1_click()
shell "copy c:\Folder\doc1.sql c:\Sql\doc2.txt"
end sub

when I run it, returns

Run-time error '53'
File Not Found
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform