Re: vb6 path

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"bp" <x@xxxxx> wrote in message news:uVMpRZaiGHA.836@xxxxxxxxxxxxxxxxxxxxxxx
whoops

could ot find my last post.

thanks all



"bp" <x@xxxxx> wrote in message
news:uf2kCMaiGHA.1612@xxxxxxxxxxxxxxxxxxxxxxx
hello,
I am using VB6. i have a string that contains a path + file name.
such as c:\temp\some folder\myFile.zip.
what is the best way to get the myFile.zip?

thanks





Someone will likely post a function to do it but if you
want to figure it out yourself, Use InstrRev() to find
the character position of last backslash, "\", then
use Mid$ or Right$ to get the filename.


.



Relevant Pages

  • Re: how to trim file path from filename
    ... filename and leave just the filename. ... UNIX may contain backslash as well. ... The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. ... DIRECTORY_SEPARATOR (string) ...
    (comp.lang.javascript)
  • Reading Text Files
    ... conversion package I need to read into vb6 as a string. ... open filename for input as #2 ...
    (comp.lang.basic.visual.misc)
  • Re: Reading Text Files
    ... conversion package I need to read into vb6 as a string. ... open filename for input as #2 ... ....because while null bytes are nothing special in VB strings, a Msgbox will stop displaying a string at the first null. ...
    (comp.lang.basic.visual.misc)
  • Re: file class
    ... private String _FileName; ... /// filename and all reqired parameters must be set up by user ... public TextFileServer(string FileName, int FixedRecordLen) ... //End of line built from constructor or user manual ...
    (microsoft.public.dotnet.languages.csharp)
  • file class
    ... private String _FileName; ... /// filename and all reqired parameters must be set up by user ... public TextFileServer(string FileName, int FixedRecordLen) ... //End of line built from constructor or user manual ...
    (microsoft.public.dotnet.languages.csharp)