Solved

Compile from batch

Posted on 2003-10-27
6
211 Views
Last Modified: 2010-04-16
Hi

I'm pretty new to win apps. But basically i want to create a batch file that will compile my program. I have just added the compile line that i would use in dos mode to compile my program, but when i run the .bat file it does nothing. What is it i have to do? cheers
0
Comment
Question by:apb2
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

by:smitty22
ID: 9628386
What's the command you're using to compile?
0
 
LVL 1

Expert Comment

by:jlach
ID: 9628504
Are you using Visual Studio? If so, you can run Visual Studio from the command line to compile your app...

devenv [Solution Name] /build [Build Config: Debug/Release]
0
 
LVL 6

Author Comment

by:apb2
ID: 9632326
No just  notepad. But i want to compile it on another machine that i don't have access to. So the person who is compiling it just has to double click on the batch file. Think i will try writing an exe that compiles the program
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 6

Author Comment

by:apb2
ID: 9632330
I'm using the

csc /reference:filename.cs /out:program.exe file.cs

etc..
0
 
LVL 2

Accepted Solution

by:
smitty22 earned 125 total points
ID: 9633691
Try using the full path of csc:
c:\Program Files\........\csc
0
 
LVL 6

Author Comment

by:apb2
ID: 9633758
hey smithy thanks or the reply. I found that notepad, which i wrote the batch file in put in all these spaces.

so i edited the file using the edit command from the dos prompt and it worked fine.

cheer any way mate.

i feel like giving away some points anyway.

cheers
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now