[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

Batch file to start a project

Hello,
I have a particular game server installed to my local machine.  It is a private edition not available on the web. You use MS Visual C ++ express edition to build the server. Can someone tell me how to write a batch file or macro to start that server without having to open Visual C , click on my server, choose debug , then choose start without debugging
0
rsernowski
Asked:
rsernowski
  • 6
  • 5
  • 5
2 Solutions
 
magicdlfCommented:
So you just go to the bin folder and pick up the .exe file?
0
 
rsernowskiAuthor Commented:
Hi Magic
Thanks for the reply
I thought it would create an exe but I cannot locate it. I have build the server, I changed some IP's etc. After it is build , then I start without debuggin.It initializes a few items, when that is complete , I see accept, then I can start the cleint.
0
 
AndyAinscowCommented:
You should be able to find the exe via the project properties.


0009.bmp
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
AndyAinscowCommented:
hit return too soon, then:


0010.bmp
0011.bmp
0
 
rsernowskiAuthor Commented:
Hi Andy
Thanks so much
Ok , excellent , thanks,  But I see the VC++ project, but no exe.
0
 
AndyAinscowCommented:
Perform a rebuild all, the exe should be there.
0
 
rsernowskiAuthor Commented:
Hi Andy
Did that and watched closer to read the notes . on the last command when it was linking it says:
c:.... \debug\mserver.exe not foundor not built by the last incremental link. performing full link.
embedding manifest..

I have looked in the ...debug folder and there is an exe there but it doesn't work.

Thanks for your help
0
 
magicdlfCommented:
What do you mean by doesn't work? Any error message?
0
 
AndyAinscowCommented:
It must work - else why does the application start.
0
 
rsernowskiAuthor Commented:
Yes, there was an error,
when I doubled clicked the exe it said it was missing a libmysql.dll. The only way for me to start the server at this time is to open MS C++ , click on the server, press CTRL+F5
0
 
magicdlfCommented:
Did you copy the exe file to other folder and execute?
0
 
rsernowskiAuthor Commented:
Hey Magic.

Actually no, I double clicked the exe directly in the debug folder
0
 
magicdlfCommented:
is there a file called xxxx.vshost.exe? If so, click that and see if anything would change. Also check the exe files under release folder (should be at the same place that you have your debug folder)  
0
 
rsernowskiAuthor Commented:
Ok, magic. I don't have the laptop with me today, I will check it tonight and get back to you
Thanks for your help
RS
0
 
magicdlfCommented:
This issue is very odd. Usually if you can use visual studio to run (ctrl+f5) the program, it's the same as you run it from the exe file. Just try to make sure the exe is built successfully. You can do that by perform a rebuild and check the create date of the exe file. Good luck!
0
 
AndyAinscowCommented:
>when I doubled clicked the exe it said it was missing a libmysql.dll

I bet in the project settings you have a setting to also check/use the directory that dll resides in - hence it runs under the debugger but not outside of it.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now