Current location: Hot Scripts Forums » Programming Languages » ASP » ASP Renaming a file (with some filename parsing)

ASP Renaming a file (with some filename parsing)

 
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-26-03, 11:47 PM
camt camt is offline
New Member
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
ASP Renaming a file (with some filename parsing)

Hey All,

Here is what I need help with:

I need to know how to count how many letters long a filename is, then rename the file with the same name except the first 16 digits - in ASP.

Can anyone give me the code / suggest another forum that might be more appropriate for my question?

----------

Why / reason:
I'm looking for some help writting a script to rename files. I am using Dundas Upload with the UseUniqueFileNames = true (because I don't want files to overwrite existing files and I can't use the temp directory feature). Anyways, once the file is uploaded I want to be able to check if a similar file exists on the server and if not, rename the file without the UniqueFilename (Dundas adds about 16 characters).

ie:
I need to know how to take a filename that I have saved as a variable (ie: file1.zip) and rename the actual file (that includes a 16digit unique key, ie: filename 1111222233334444_file1.zip) to just the file1.zip.

thanks,


__________________
Cam.
: : fantom design
http://www.fantomdesign.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP code to edit a text file mdhall Script Requests 4 11-18-08 07:23 AM
New Web Host, New Problem! justchat PHP 2 09-29-03 03:39 PM
Script to change file extensions JavaHead Script Requests 2 09-13-03 10:44 AM
Writes to a text file gamextremer2003 JavaScript 4 09-11-03 10:43 AM
Upload file type and size limiter! Arctic ASP 1 08-02-03 08:06 PM


All times are GMT -5. The time now is 05:02 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.