|
-
Jan 17th, 2000, 08:36 PM
#1
Thread Starter
Lively Member
How can I call another exe-file which is not programmed in VB. It is a accountancy-program.
Normaly I have to copy an ini-file from the server to my own pc. Then I call my program mggen.exe. These things happens now in a bat-file, but i would like to do is with VB.
Tanks for helping me.
Deju
-
Jan 17th, 2000, 08:55 PM
#2
Junior Member
You can use the shell command to call another program like this (this starts notepad):
Shell "c:\windows\notepad.exe", vbNormalFocus
To copy a file you can use the FileCopy functions:
copyfrom$ = "c:\test.txt"
copyto$ = "c:\windows\test.txt"
FileCopy copyfrom$, copyto$
-
Jan 17th, 2000, 10:55 PM
#3
Thread Starter
Lively Member
Thanks for helping me out.
Is it also possible to give some parameters from the dos-prompt to my application?
Thanks
-
Jan 17th, 2000, 11:10 PM
#4
PowerPoster
You can use 'Command' to get the arguments, not sure if it works from DOS too...
-
Dim Temp as String
Temp = Command
MsgBox "Arguments: " & Temp
-
------------------
[email protected]
...
Every program can be reduced to one instruction which doesn't work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|