Fa کد Explore disk

ASANWEB

Member
دوستان من احتیاج به یک کد دارم که تو action code یک button بزارم که دقیقا همون کاری رو انجام بده که قسمت explore disk تو قسمت external commond میشه انجام داد یعنی با اون کد یک فولدر رو برام باز کنه

ممنون
 

nevercom

کاربر متخصص انجمن مولتی مدیا بیلدر
کد:
Folder$ = [COLOR=#800000]'G:\Downloads\Downloads'[/COLOR] 
Param$ = [COLOR=#800000]'/e,'[/COLOR] + Folder$ 
[COLOR=#000090][B]Run[/B][/COLOR]("explorer.exe","Param$")
این دقیقاً به همون شکلی که Explore Disk هست عمل میکنه، اگر فقط میخاید فولدر رو باز کنید فقط از متغیر $Folder بعنوان پارامتر در دستور Run استفاده کنید.

توضیحات بیشتر از سایت مایکروسافت:
کد:
[LEFT]   Option            Function
   ----------------------------------------------------------------------   
   /n                Opens a new single-pane window for the default
                     selection. This is usually the root of the drive that
                     Windows is installed on. If the window is already
                     open, a duplicate opens.

   /e                Opens Windows Explorer in its default view.

   /root,<object>    Opens a window view of the specified object.

   /select,<object>  Opens a window view with the specified folder, file,
                     or program selected.

   Examples
   -----------------------------------------------------------------------
   Example 1: Explorer /select,C:\TestDir\TestProg.exe
              Opens a window view with TestProg selected.

   Example 2: Explorer /e,/root,C:\TestDir\TestProg.exe
              Opens Explorer with drive C expanded and TestProg selected.

   Example 3: Explorer /root,\\TestSvr\TestShare
              Opens a window view of the specified share.

   Example 4: Explorer /root,\\TestSvr\TestShare,select,TestProg.exe
              Opens a window view of the specified share with TestProg selected.
[/LEFT]
 

جدیدترین ارسال ها

بالا