VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Remove file location from a path.

by st1d (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sun 8th October 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Remove file location from a path.

API Declarations


'
'Ex: text1 = TrimPath("C:\Windows\cdplayer.exe"

Rate Remove file location from a path.



For i% = Len(sPath) To 1 Step -1
 If InStr(i%, sPath, "\", 1) = i% Then Exit For
Next i%
text1.text = Right$(sPath, Len(sPath) - i%)

Download this snippet    Add to My Saved Code

Remove file location from a path. Comments

No comments have been posted about Remove file location from a path.. Why not be the first to post a comment about Remove file location from a path..

Post your comment

Subject:
Message:
0/1000 characters