Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


file name

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> file 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 >>
 file name - 10/31/2002 2:45:38 AM   
  bapperlo

 

Posts: 4
Score: 0
Joined: 10/31/2002
From: Netherlands
Status: offline
I have made a site that reads data from a table that contains document names and some extra (but here irrelevant) data. My site shows all document in a table, but it shows the whole path and i just want to show the filename. Could anyone tell me how i can do this???
 
 
Post #: 1
 
 Re: file name - 11/2/2002 7:30:53 AM   
  sfriday

 

Posts: 5
Score: 0
Joined: 9/4/2002
From: United Kingdom
Status: offline
fred = "c:\documents and settings\My Documents\fred.txt"
fname = Split(fred,"\")
msgbox fname(ubound(fname))

Regards
Steve

(in reply to bapperlo)
 
 
Post #: 2
 
 
 
  

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 >> file 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