Page 1 of 1
Perform action when an Exe is created
Posted: Tue May 08, 2007 9:30 am
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?
Perform action when an Exe is created
Posted: Tue May 08, 2007 11:24 pm
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.
Perform action when an Exe is created
Posted: Tue May 08, 2007 11:36 pm
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.
Perform action when an Exe is created
Posted: Thu May 10, 2007 4:12 am
by vikassethi
Any further help from you would be appreciated.
Perform action when an Exe is created
Posted: Thu May 10, 2007 4:46 am
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.
Perform action when an Exe is created
Posted: Thu May 10, 2007 4:56 am
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?
Perform action when an Exe is created
Posted: Thu May 10, 2007 5:32 am
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
Perform action when an Exe is created
Posted: Thu May 10, 2007 5:36 pm
by vikassethi
Thanks a lot for this great help.