Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 2nd, 2007, 10:02 PM
thilakag thilakag is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 1 thilakag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 31 sec
Reputation Power: 0
Copy *.* from a folder and rename it???

Hi,

I am trying to copy file(s) from a folder as a *.* and add the date stamp on to the file name.
at the moment I am doing it by knowing the file name. but how would I do it without knowing the files are in the folder "eg: copy\ ".

currently I am passing the file name as an argument.

apreciate help,

gem

Reply With Quote
  #2  
Old September 7th, 2007, 08:50 PM
Matt1776's Avatar
Matt1776 Matt1776 is online now
Recovering Intellectual
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2006
Location: Orange County, CA
Posts: 922 Matt1776 User rank is Major (30000 - 40000 Reputation Level)Matt1776 User rank is Major (30000 - 40000 Reputation Level)Matt1776 User rank is Major (30000 - 40000 Reputation Level)Matt1776 User rank is Major (30000 - 40000 Reputation Level)Matt1776 User rank is Major (30000 - 40000 Reputation Level)Matt1776 User rank is Major (30000 - 40000 Reputation Level)Matt1776 User rank is Major (30000 - 40000 Reputation Level)Matt1776 User rank is Major (30000 - 40000 Reputation Level)Matt1776 User rank is Major (30000 - 40000 Reputation Level)Matt1776 User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 4 h 14 m 15 sec
Reputation Power: 347
Send a message via ICQ to Matt1776 Send a message via AIM to Matt1776 Send a message via MSN to Matt1776 Send a message via Yahoo to Matt1776 Send a message via Skype to Matt1776
Quote:
Originally Posted by thilakag
Hi,

I am trying to copy file(s) from a folder as a *.* and add the date stamp on to the file name.
at the moment I am doing it by knowing the file name. but how would I do it without knowing the files are in the folder "eg: copy\ ".

currently I am passing the file name as an argument.

apreciate help,

gem


get yourself a directory listing into a variable and iterate through them one by one. Use the indexing variable to do a regular expression substitution on the file extension. You can place the new information on the end of the file and add the extension back on. What scripting language are you using?
__________________
Bugs that go away by themselves come back by themselves
Never take life seriously, Nobody gets out alive anyway.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Copy *.* from a folder and rename it???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway