Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Recognize file with variable name

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Recognize file with variable name
  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 >>
 Recognize file with variable name - 9/9/2008 8:47:37 PM   
  ingmar

 

Posts: 7
Score: 0
Joined: 9/9/2008
Status: offline
Hi,

I know how I cano upload a file with a name send.txt

But how can I write a code that let's me upload a file with (f.ex.) a name "send 10-09-2008.txt" , so one with a variable part of its name (the date) ?
Tnx!

< Message edited by ingmar -- 9/10/2008 8:14:21 PM >
 
 
Post #: 1
 
 RE: Recognize file with variable name - 9/12/2008 9:11:14 PM   
  ingmar

 

Posts: 7
Score: 0
Joined: 9/9/2008
Status: offline
I just have to be able to recognize a file with a fixed begin, but a variable (with fixed pattern) part. Anyone?
Can I use an asterix or something like that? Or can I use a pattern?

(in reply to ingmar)
 
 
Post #: 2
 
 RE: Recognize file with variable name - 9/13/2008 5:21:18 AM   
  dm_4ever


Posts: 2669
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
If you're looking at identifying a pattern then look at regular expressions.

_____________________________

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 ingmar)
 
 
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 >> Recognize file with variable name 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