Perform action when an Exe is created

Discuss RoboTask here
Post Reply
vikassethi
Posts: 12
Joined: Tue May 08, 2007 9:28 am
Location: India
Contact:

Perform action when an Exe is created

Post by vikassethi »

I am not able to achieve:
1. In VB/Vb.Net start the creation process of exe.
2. When the exe gets completed email it.
I am able to start the exe creation process through Robotask, but there is no way for me to know whether the exe has been created or not. Can you help?
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Perform action when an Exe is created

Post by Oleg »

Suppose we have a project C:\myProject\Project1.vbp

In order to compile the project into EXE, use /m key:
"C:\Program Files\Microsoft Visual Studio\VB98\VB6.EXE" /m C:\myProject\Project1.vbp

Suggestion:
run VB with /? switch to get more options
"C:\Program Files\Microsoft Visual Studio\VB98\VB6.EXE" /?

Your task will look so:
1. run program "VB6.EXE /m Project1.vbp" and wait until VB done
2. Wait a couple seconds (optional)
3. Send email with project1.exe file

If you want I can write a sample task.
vikassethi
Posts: 12
Joined: Tue May 08, 2007 9:28 am
Location: India
Contact:

Perform action when an Exe is created

Post by vikassethi »

Thanks for the reply. So if I am understanding correctly, what you are suggesting is that I create VB.exe through RoboTask?
Presently I am using RoboTask to open VB's menu and then create the Exe. That was the only thing I could think of. I can send my task file if you would like to have a look.
 
I would appreciate if you can write a quick sample that gives me a lead on doing thing, because this is going to be my primary objective of using RoboTask.
vikassethi
Posts: 12
Joined: Tue May 08, 2007 9:28 am
Location: India
Contact:

Perform action when an Exe is created

Post by vikassethi »

Any further help from you would be appreciated.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Perform action when an Exe is created

Post by Oleg »

What's the problem?
You do not need to open menu of Visual Basic. VB supports command line, and you can make an EXE file from your VB project directly by using the following command line (for example for Visual Basic 6):
"C:\Program Files\Microsoft Visual Studio\VB98\VB6.EXE" /m C:\myProject\Project1.vbp

See this example, please.
Last edited by Oleg on Thu May 10, 2007 8:47 am, edited 1 time in total.
vikassethi
Posts: 12
Joined: Tue May 08, 2007 9:28 am
Location: India
Contact:

Perform action when an Exe is created

Post by vikassethi »

Thank you for your reply. Does VB 2005 also supports command line the way you have mentioned above?
Please also advise on the Action in RoboTask that I have to select for executing the above command line?
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Perform action when an Exe is created

Post by Oleg »

Does VB 2005 also supports command line the way you have mentioned above?
Yes. Use devenv.com or devenv.com with "/?" switch to lean more. Like this:
"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /?
or
"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.com" /?
Please also advise on the Action in RoboTask that I have to select for executing the above command line?
Download this task and save into the file. Use menu of RoboTask "Task | Import" in order to import into RoboTask.
Next you can learn this task in task editor of RoboTask
vikassethi
Posts: 12
Joined: Tue May 08, 2007 9:28 am
Location: India
Contact:

Perform action when an Exe is created

Post by vikassethi »

Thanks a lot for this great help.
Post Reply