Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 1st, 2006, 10:23 PM
Authorized User
Join Date: Aug 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Byock
Default Changing the filename for download

I have this file path....

filepath = "C:\\Inetpub\\sample\\download\\mp3\\0000175_01_04 .mp3";

and the following line will get the file name '0000175_01_04.mp3'

string filename = System.IO.Path.GetFileName(filepath);

But i like to change this file name '0000175_01_04.mp3' into 'Jazz1.mp3'

How would i do it? Please help...

Thanks a lot

Similar Threads
Thread Thread Starter Forum Replies Last Post
Images by filename ekugler Reporting Services 2 October 11th, 2007 04:21 AM
Smaller download/single download file available jminatel BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 November 21st, 2005 11:10 AM
filename validation silver_cuts Classic ASP Basics 6 June 24th, 2004 06:24 AM
Get a filename from directory cutovoi Excel VBA 1 January 7th, 2004 03:18 AM
download button - dynamic change filename Tom_Nguyen Javascript How-To 1 November 28th, 2003 04:36 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.