Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Parse files for data, then copy files

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,53686
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Parse files for data, then copy files
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Parse files for data, then copy files - 11/20/2007 10:36:55 AM   
  umerok

 

Posts: 1
Score: 0
Joined: 11/20/2007
Status: offline
Hi everyone! I'm not very good at scripting (and that is giving me credit), and was wondering if you could help me out. I need a script that



Parses a file (it's a text file, but it doesn't have a .txt extenstion) for a particular string in the format

99-9999

(2 numbers, hyphen, 4 numbers)
and then copy then file to a folder on a different computer with the name 99-9999 or whatever the numbers parsed turn out to be. If the folder doesn't exist, it needs to be created.

This then needs to be repeated for all other files in the folder.



I know it's asking a lot, but I really appreciate anything you guys can provide me with. Thanks in advance.
 
 
Post #: 1
 
 RE: Parse files for data, then copy files - 11/20/2007 1:30:30 PM   
  dm_4ever


Posts: 2724
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Read the read me post.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to umerok)
 
 
Post #: 2
 
 RE: Parse files for data, then copy files - 11/20/2007 7:09:59 PM   
  ehvbs

 

Posts: 2223
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi umerok,

please give some more information (sample?). How would you find this number
'by hand'?

(in reply to umerok)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Parse files for data, then copy files Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts