Computer Engineers

 
Home | Computer engineering other top | Fiber / Wireless / Copper Tran | Semiconductor engineering
  Position:HOME>Programming language engineeri>Article Content
VB6 Running Another Program
Source:Internet Author:Unknow Pubdate:2008-04-14  
runalot4ever (Structural) 27 Nov 04 16:04
Ok I work at a store were every night we have to run a program and follow certain steps with in the program. Thw hole process takes me about 15min. I was wondering if there is any way I can write a VB6 program that will do the steps for me.
   I guess im asking make a VB program were all I have to do is click one button and the VB6 program will do all the steps in the other program??

  Please help!!!!!

BillPSU (Industrial) 27 Nov 04 20:58
I don't know what kind of programs you have but command line batch job can be set up to run whatever programs you want. You may have to setup some macros to do your program steps within your programs. Works great after you set the programs up properly.

Bill


runalot4ever (Structural) 28 Nov 04 0:47 字串4
Thank you, you have been a big help. I have one more question. Do you know of any programs that create macros for you???

CajunCenturion (Computer) 28 Nov 04 9:11
This is certainly doable, but there are two questions that I feel you need to address.  
Is there a return value issue?  Do the results of one program feed into another, or is there a conditional based on the results of one program?

Is there a sequencing and timing issue?  Is is necessary to wait on one program to complete before starting the next? Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein

BillPSU (Industrial) 28 Nov 04 10:08
runalot4ever
Just as CajunCenturion said it is important to understand the order of the steps in your process which you want done.

字串1


If you do this with batch jobs the payback will just about be immediate.

You will have to create your own macros. Depending on what programs you are running it can be quite easy.

Be sure to test the program and try to anticipate problems such as the computer going down due to loss of power or whatever else can occur in you environment.

Bill

nightghos (Computer) 30 Nov 04 16:28
If you are running in XP you can use a simple scheduled task, or an AT command at the command prompt, you can also do a vc++ program that can handle precedence of your program via Win API to check wherever precedent task finish or not, and the same for the power and so on.

jrodden (Computer) 9 Dec 04 3:21
You may also use shell to execute the program within a VB6 app, and then use SendKeys to simulate keypresses in your program. Regards, 字串8
Jon


(Click:

Previous:Hardware Interfacing thru C..   Next:getlogin in C programming
[Add TO Favorites] [TOP] [PRINT] [CLOCE WINDOWS]  
  Hot Article
·PIC code for triac light dimme
·Connecting a Footswitch to an
·Siemens s7-200 PLC & Visua
·TETRIS source code is availabl
·XML Files and Terramodel
·controlling GPIB from VBA
·LINKING MSC PATRAN WITH INTRAN
·How to interface RS-485 / Modb
·VBA WITH AB PLC
·SIEMENS: I/O, NCDDE AND DCTL
·getch() function
·Visual Basic Serial Comms To S
  Related Articles
·getlogin in C programming
·RowSource problem with Combobo
·Porting a Windows NT C++ app t
·Visual Basic
·Convert Excel to PDF
·Automatic delete files
·Prolog help
·C win32 threads
·how to make use of the results
·GTCO-Calcomp & USB to serial a
·E1055: Unable to open 'windows
·MsgBox in VB6
Power by DedeCms