473,670 Members | 2,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Deployment. Rename Directory and File. Is this possible?

Hello,

I am using Visual Studio 2008 and Web Deployment Projects:
http://blogs.msdn.com/webdevtools/ar...-released.aspx

Is it possible to rename a directory and a folder when the web site
building finishes?

I was trying to do something inside the <Target Name="AfterBuil d"but
until know I couldn't find a command for this.

Thanks,
Miguel
Jan 5 '08 #1
2 1519
"shapper" <md*****@gmail. comwrote in message
news:d5******** *************** ***********@e6g 2000prf.googleg roups.com...
I am using Visual Studio 2008 and Web Deployment Projects:
http://blogs.msdn.com/webdevtools/ar...-released.aspx

Is it possible to rename a directory and a folder when the web site
building finishes?

I was trying to do something inside the <Target Name="AfterBuil d"but
until know I couldn't find a command for this.
1) Use the <MakeDir /tag to create the new directory

2) Use the <Copy SourceFiles /tag to copy files from the directory you
want to "rename" into the new directory

3) Use the <RemoveDir /tag to delete the directory you want to "rename"
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jan 5 '08 #2
On Jan 5, 4:15 pm, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
"shapper" <mdmo...@gmail. comwrote in message

news:d5******** *************** ***********@e6g 2000prf.googleg roups.com...
I am using Visual Studio 2008 and Web Deployment Projects:
http://blogs.msdn.com/webdevtools/ar...b-deployment-p...
Is it possible to rename a directory and a folder when the web site
building finishes?
I was trying to do something inside the <Target Name="AfterBuil d"but
until know I couldn't find a command for this.

1) Use the <MakeDir /tag to create the new directory

2) Use the <Copy SourceFiles /tag to copy files from the directory you
want to "rename" into the new directory

3) Use the <RemoveDir /tag to delete the directory you want to "rename"

--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
And to rename a file?

Thanks,
Miguel
Jan 7 '08 #3

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

Similar topics

5
4914
by: Arun Bhalla | last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My application is using the Windows Installer Bootstrap. (I may have also installed a module which detects requirements (.NET 1.1 -> MsiNetAssembly Support.) I have a few issues and questions regarding the MSI and its properties. * This may be my biggest annoyance at the moment. When the installer creates the target directory, it's setting them as read-only. When the...
4
3520
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
5
2730
by: Tony Meyer | last post by:
On Windows, if I do os.rename(old, new) where old is a file that is in-use (e.g. python itself, or a dll that is loaded), I would expect that an error would be raised (e.g. as when os.remove is called with an in-use file). However, what happens is that a copy of the file is made, and the old file still exists. For example: C:\>c:\python24\python.exe Python 2.4.2 (#67, Sep 28 2005, 12:41:11) on win32
1
2050
by: Jesse Albert | last post by:
I'm having a complete brainfart so I'll just let you all know the issue and listen to any possible solution you can offer without asking for a specific way to do this ;) I have a Solution ( VB 2005) that consists of 3 projects: A Service, a Configuration Project, and the Deployment project. The config project is just the UI that will save settings to an XML file in the installation directory.
1
1880
by: Gene | last post by:
I would like to know if the following is even possible with the visual studio.net Setup and Deployment project. 1. During the deployment after creation of application directory the setup needs to prompt user to select another location to send a data file elsewhere on target machine (with ability to create this directory). 2. After that this secondary location selected/created by the user,
3
6726
by: gsoguerrilla | last post by:
Hi, I have limited knowledge in php and I am having trouble with uploading an image to a remote directory and resizing it if it's larger and renaming it to a unique id, while at the same time I would like to create a record in mysql database. I've tried to find some tutorials but I've had trouble finding any good ones. Wondering if anybody has good examples or link to a good tutorial. Thanks in advance.
3
3614
by: rn5a | last post by:
An inquisitive question...... A ListBox lists all the directories & files residing in a directory on the server. Assume that the ListBox lists 2 directories & 4 files. Also assume that one of the directories is named 'mydir' (without the quotes). Note that the all the letters in the directory name are in lowercase. To rename any directory/file, one can use the Move method of the Directory/File class respectively but ASP.NET doesn't...
1
2152
by: codemaster | last post by:
Hi, I am a total novice to perl. I am moving files from one directory to another and trying to rename a file appending the timestamp. But for some reason, my code is not able to rename. Attached is the code : # directory structure for input and archive files $inputDir = "\\interac\\Data\\imntran\\".$ARGV; $archDir = "\\interac\\Data\\imntran\\Archive\\".$ARGV; $archSQLLogDir = $archDir."\\SQLlog";
5
2156
by: tshad | last post by:
I have a Windows Service that I am deploying by setting a Deployment project in my solution. The problem I am having is with the app.config file. This where we store our connection string and folder locations. My development app.config is different from my clients. When I send him an msi file, I have to either add the clients app.config file into my project in 2 locations (as I am running as an exe as well as a
0
8466
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8384
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8901
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8591
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8659
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6212
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4208
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1791
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.