ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¥Ø¿ýÀɦW°ÝÃD

¥Ø¿ýÀɦW°ÝÃD

¤p§Ìª¦¹L¨Ç¤å³¹

¬d¨ìªº´X¥G³£¬OŪ¨ú³æ¤@¥Ø¿ý¤Uªº©Ò¦³ÀɮצWºÙ

³o¸Ì¬O²³æOpenFileªº¨â¦æµ{¦¡

fileNames = Application.GetOpenFilename("Text-Files,*.txt")

TextBox1.Text = fileNames

¿ï¨útext.txtÀɮ׫á

TextBox1.Text Åã¥Ü¥X¥Ø¿ý¦WºÙ  EX  :   C:\Documents and Settings\host\®à­±\Paper\text.txt

¤p§Ì·Q½Ð°Ý¤@¤U  ¦p¦ó¦b¿ï¨útext.txt¤§«á ÅýTextBox1.Text ¥uÅã¥Ü¥X¥Ø¿ý¦WºÙ´N¦n ¦Ó¤£¥]§t©Ò¿ï¨úªºÀɮצWºÙ

¤]´N¬O C:\Documents and Settings\host\®à­±\Paper ³o¼Ë´N¦n

³Â·Ð¦U¦ì¸Ñµª>"<
WOW

¦^´_ 1# g93353


    Filenames = Application.GetOpenFilename("Text-Files,*.txt")
Set fdo = CreateObject("Scripting.FilesystemObject")
MsgBox fdo.GetParentFolderName(Filenames)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

ÁÂÁª©¥D!!!!!!!
WOW

TOP

¦^´_ 1# g93353
  1. Sub Ex()   
  2.     Filenames = Application.GetOpenFilename("Text-Files,*.txt")
  3.     Filenames = Mid(Filenames, 1, InStrRev(Filenames, "\") - 1)
  4. End Sub
½Æ»s¥N½X

TOP

¤w¸Ñ¨M  ¤]ÁÂÁ GBKEE ªº¦^ÂÐ!!!
WOW

TOP

        ÀR«ä¦Û¦b : ¡i°µ¤Hªº¶}©l¡j¨C¤@¤Ñ³£¬O¬G¤Hªº¶}©l¡A¨C¤@­Ó®É¨è³£¬O¦Û¤vªºÄµ±§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD