473,394 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to rename of build/deployed application filename and extension

i've created a console application, and by default the filename will be my
project/solution name, ie. testCmd.exe

but, can i change it during the build/deployment process to testCmdNew.com
[change both filename and extension]

my ultimate goal is to write a deployment script to deploy the application
with different filename and extension to a folder like the following

devenv /Build "testCmd.sln"

i don't know where to config on the vs.net ide.

any ideas?

thanks!

cheers,
mullin
Nov 15 '05 #1
3 2803
but, can i use devenv as i have quite lots of reference, and don't want
write them one by one. it's so troublesome.

/out option of devenv is the log file of the build.

thanks!

regards,
mullin

"Subramanian" <av******@nospam.rediffmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

you can build the application using the csc prompt build the application by using the csc Command prompt and with /out: option you can build the
application with the a different name.

regards
Manian
"Mullin Yu" <mu*******@ctil.com> wrote in message
news:el**************@TK2MSFTNGP11.phx.gbl...
i've created a console application, and by default the filename will be my project/solution name, ie. testCmd.exe

but, can i change it during the build/deployment process to testCmdNew.com [change both filename and extension]

my ultimate goal is to write a deployment script to deploy the application with different filename and extension to a folder like the following

devenv /Build "testCmd.sln"

i don't know where to config on the vs.net ide.

any ideas?

thanks!

cheers,
mullin


Nov 15 '05 #2
Huh, a COM file is very different from EXE.
To make a COM file programatically you would have to do something like csc
/target:com (which doesn't exist). /out:### will let you rename it to
COM, but it would still be an EXE.
Why would you want to rename it to COM anyway? It would be like an EXE
program disguising itself as COM for no reason, but it would still run as
EXE due to some weird desicion in Windows to allow this.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #3
i need this because i want to run a single application e.g. test which will
either start the batch version or GUI version.

the technique is shown at the following:
http://msdn.microsoft.com/msdnmag/is...A/default.aspx

but, i think may be due the i'm using vs.net 2002, so i don't have the
"Custom build setup".

indeed, i manually rename test.exe to test.com, and it really works. i can
start the batch or gui version of the application

e.g. c:\>test => GUI
c:\>test -l => batch

thanks!

regards,
mullin

"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:op**************@msnews.microsoft.com...
Huh, a COM file is very different from EXE.
To make a COM file programatically you would have to do something like csc
/target:com (which doesn't exist). /out:### will let you rename it to
COM, but it would still be an EXE.
Why would you want to rename it to COM anyway? It would be like an EXE
program disguising itself as COM for no reason, but it would still run as
EXE due to some weird desicion in Windows to allow this.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
10
by: Brian Gruber | last post by:
Hi, I'm looking for a way to rename a whole directory of files in short order. The files in the directory have different lengths, however all of them end with _xxxx the x's represent a randomly...
0
by: David Parker | last post by:
I have built slony 1.0.2 with postgres 7.4.5. This needs to be deployed on a system other than the one on which is was built. Somebody on our team had earlier gotten around the problem of not being...
8
by: Merlin | last post by:
Ok.... I feel really dumb on this one, because I had previously figured it out, and now don't have a clue. I'm trying to get the user to input a new filename (via an integer variable) and...
3
by: Yannick Benoit | last post by:
Hi guys. I have like hundreds of pictures in a folder and then I use this function to rename them all to a following number. but very often I noticed that some pictures get lost and I dont know...
6
by: shuaishuaiyes | last post by:
Hello everyone... I'm a Chinese student and my English is very poor...So excuse me if I make grammar mistake. I want to ask some questions about "rename". I'm a beginner, so my C ..... :) I...
2
by: Pieter | last post by:
Hi, How can I knwo the BuildDate from an application distributed by ClickOnce? When I use "System.IO.File.GetLastWriteTime(objAssembly.Location)" or...
1
by: shapper | last post by:
Hello, I am moving file from a folder A to folder B using: System.IO.File.Move(path, newpath) I am not sure if this is the best way to do this but I also need to: 1. Rename the file...
3
by: barcrofter | last post by:
This seems like a silly question -- How can I read the actual publish version build data??. When I use: With My.Application.Info Version.Text = "Version: " _ + Format(.Version.Major +...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.