473,581 Members | 2,786 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.sl n"

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

any ideas?

thanks!

cheers,
mullin
Nov 15 '05 #1
3 2822
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

"Subramania n" <av******@nospa m.rediffmail.co m> wrote in message
news:%2******** ********@TK2MSF TNGP12.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******** ******@TK2MSFTN GP11.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.sl n"

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.m icrosoft.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
2313
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 similar name to the table. Rather than making a long Select Case that could become obsolete if lookup tables are added and the source table of the...
10
13047
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 generated number from a program that I saved from. So I need to find a way that I can quickly remove the underscore and the last 4 numbers from the...
0
2307
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 able to move a postgres install by manually updating the pg_catalog.pg_proc table. But it seems like this worked *after* the procs calling external...
8
1948
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 have that variable passed to rename, so that the file can be named whatever the user specifies in the console window.... Currently using
3
5361
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 where ? anyone can tell me whats wrong ? $dir = getcwd()."/dump/"; $dh = opendir($dir);
6
2523
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 want to rename a batch of files..Such as I want to rename"1.avi,2.avi" to "Prison BreakS1E1.avi,Prison BreakS1E2.avi" in the same folder..How can I...
2
1439
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 "System.IO.File.GetCreationTime(objAssembly.Location)" it returns me the date and time that the user downloaded and isntaled the application, butn ot the date it was published...
1
1328
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 before coping it (I want to keep the extension. I just want to rename the filename)
3
1210
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 + .Version.Minor / 10 + .Version.Build / 100, "0.00") End With
0
7882
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7914
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8181
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6564
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5683
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5366
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3809
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2309
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1410
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.