Print Page | Close Window

renaming a file using asp

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=1614
Printed Date: 28 March 2026 at 11:14pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: renaming a file using asp
Posted By: Nathan
Subject: renaming a file using asp
Date Posted: 04 April 2003 at 1:47pm

I recently posted a message about how I can rename a file using an asp script. The answer must have been on the old message forum - but I think it involved using the copy command.

Can anyone help.

Thanks loads.

Nathan




Replies:
Posted By: MorningZ
Date Posted: 04 April 2003 at 1:54pm
http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=36 - http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=36

-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Nathan
Date Posted: 05 April 2003 at 11:42am

Thanks MZ that works great - I owe you a beer.

I have noticed though that if you try moving (to rename it) a file that does not exsist, then an error is thrown. Is there a way of first checking if the file exsits first?

Thanks

 

Nathan

 

 



Posted By: MorningZ
Date Posted: 05 April 2003 at 11:54am
Bookmark this page... great resource: http://www.aspfaqs.com/aspfaqs/ - ASP Faqs.com

and from there (same place i got the above), http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=78 - How do I find out if a file exists?

-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Nathan
Date Posted: 10 April 2003 at 10:26am

thanks MZ.

I owe you a beer. Shall bookmark the FAQ page.

Cheers

Nathan




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net