Solved

Compile from batch

Posted on 2003-10-27
6
214 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
insert value of checklistbox checked 4 39
C# Linq - Join two objects into one 3 37
orderby list (from Json) 1 30
Visual C# Windows Project - Clone Form 4 26
Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
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
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

726 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