Solved

Compile from batch

Posted on 2003-10-27
6
213 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 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