VB question

Discussion in 'Software' started by NightStalk3r, Sep 16, 2004.

  1. NightStalk3r

    NightStalk3r Private E-2

    when i open a file, and store it in a string var, i get the whole path, is there a way to just get the file name???? ie test.txt instread of C:\docs\blah\test.txt
     
  2. Wookie

    Wookie Sergeant Major

    What are you using to open? Common Dialog control?

    If so try

    Commondialog1.FileTitle

    I think that gives you just the file name while

    Commondialog1.Filename

    Give you the whole string
     
  3. Kodo

    Kodo SNATCHSQUATCH


MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds