用ShellExecuteEx開啟檔案,資料夾
先來看看“深入淺出ShellExecute”
Q: 如何開啟一個應用程式?
ShellExecute(this->m_hWnd,"open","calc.exe","","", SW_SHOW );或
ShellExecute(this->m_hWnd,"open","notepad.exe", "c://MyLog.log","",SW_SHOW );正如您所看到的,我並沒有傳遞程式的完整路徑。
Q: 如何開啟一個同系統程式相關連的文件?
ShellExecute(this->m_hWnd,"open", "c://abc.txt","","",SW_SHOW );
ShellExecute(this->m_hWnd,"open", "http://www.google.com","","", SW_SHOW );Q: 如何啟用相關程式,傳送EMAIL?
ShellExecute(this->m_hWnd,"open", "mailto:[email protected]","","", SW_SHOW );Q: 如何用系統印表機列印文件?
ShellExecute(this->m_hWnd,"print", "c://abc.txt","","", SW_HIDE);Q: 如何用系統查詢功能來查詢指定檔案?
ShellExecute(m_hWnd,"find","d://nish", NULL,NULL,SW_SHOW);
SHELLEXECUTEINFO ShExecInfo = {0}; ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS; ShExecInfo.hwnd = NULL; ShExecInfo.lpVerb = NULL; ShExecInfo.lpFile = "c://MyProgram.exe"; ShExecInfo.lpParameters = ""; ShExecInfo.lpDirectory = NULL; ShExecInfo.nShow = SW_SHOW; ShExecInfo.hInstApp = NULL; ShellExecuteEx(&ShExecInfo); WaitForSingleObject(ShExecInfo.hProcess,INFINITE);
PROCESS_INFORMATION ProcessInfo; STARTUPINFO StartupInfo; //This is an [in] parameter ZeroMemory(&StartupInfo, sizeof(StartupInfo)); StartupInfo.cb = sizeof StartupInfo ; //Only compulsory field if(CreateProcess("c://winnt//notepad.exe", NULL, NULL,NULL,FALSE,0,NULL, NULL,&StartupInfo,&ProcessInfo)) { WaitForSingleObject(ProcessInfo.hProcess,INFINITE); CloseHandle(ProcessInfo.hThread); CloseHandle(ProcessInfo.hProcess); } else { MessageBox("The process could not be started..."); }Q: 如何顯示檔案或資料夾的屬性?
SHELLEXECUTEINFO ShExecInfo ={0}; ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); ShExecInfo.fMask = SEE_MASK_INVOKEIDLIST ; ShExecInfo.hwnd = NULL; ShExecInfo.lpVerb = "properties"; ShExecInfo.lpFile = "c://"; //can be a file as well ShExecInfo.lpParameters = ""; ShExecInfo.lpDirectory = NULL; ShExecInfo.nShow = SW_SHOW; ShExecInfo.hInstApp = NULL; ShellExecuteEx(&ShExecInfo);
在windows mobile中,要開啟一個資料夾,下面一種方法可以:
- SHELLEXECUTEINFO ShExecInfo;
- memset( &ShExecInfo, 0, sizeof( SHELLEXECUTEINFO ) );
- ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
- ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
- ShExecInfo.hwnd = m_hWnd;
- ShExecInfo.lpVerb = L"Open";
- ShExecInfo.lpFile = L"fexplore.exe";
- ShExecInfo.lpParameters = L"//Program Files//photo//";
- ShExecInfo.lpDirectory = NULL;
- ShExecInfo.nShow = SW_SHOWNORMAL;
- ShExecInfo.hInstApp = NULL;
- ShellExecuteEx(&ShExecInfo);
開啟一個檔案
- SHELLEXECUTEINFO ShExecInfo;
- memset( &ShExecInfo, 0, sizeof( SHELLEXECUTEINFO ) );
- ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
- ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
- ShExecInfo.hwnd = m_hWnd;
- ShExecInfo.lpVerb = L"Open";
- ShExecInfo.lpFile= L"//ProgramFiles//Empty//Empty.exe";
- ShExecInfo.lpParameters = NULL;
- ShExecInfo.lpDirectory = NULL;
- ShExecInfo.nShow = SW_SHOWNORMAL;
- ShExecInfo.hInstApp = NULL;
- ShellExecuteEx(&ShExecInfo);
關於ShellExecuteEx Function
Performs an operation on a specified file.
Syntax
BOOL ShellExecuteEx(
LPSHELLEXECUTEINFO lpExecInfo );
Parameters
- lpExecInfo
- The address of a SHELLEXECUTEINFO structure that contains and receives information about the application being executed.
Return Value
Returns TRUE if successful, or FALSE otherwise. Call GetLastError for error information.
Remarks
Because ShellExecuteEx can delegate execution to Shell extensions (data sources, context menu handlers, verb implementations) that are activated using Component Object Model (COM), COM should be initialized before ShellExecuteEx is called. Some Shell extensions require the COM single-threaded apartment (STA) type. In that case, COM should be initialized as shown here:
There are certainly instances where ShellExecuteEx does not use one of these types of Shell extension and those instances would not require COM to be initialized at all. Nonetheless, it is good practice to always initalize COM before using this function.
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE)With multiple monitors, if you specify an HWND and set the lpVerb member of lpExecInfo to "Properties", any windows created by ShellExecuteEx may not appear in the correct position.
If the function succeeds, it sets the hInstApp member of the SHELLEXECUTEINFO structure to a value greater than 32. If the function fails, hInstApp is set to the SE_ERR_XXX error value that best indicates the cause of the failure. Although hInstApp is declared as an HINSTANCE for compatibility with 16-bit Microsoft Windows applications, it is not a true HINSTANCE. It can only be cast to an int and compared to either 32 or the SE_ERR_XXX error codes.
Note The SE_ERR_XXX error values are provided for compatibility with ShellExecute. To retrieve more accurate error information, use GetLastError. It may return one of the following values.
Error Description ERROR_FILE_NOT_FOUND The specified file was not found. ERROR_PATH_NOT_FOUND The specified path was not found. ERROR_DDE_FAIL The Dynamic Data Exchange (DDE) transaction failed. ERROR_NO_ASSOCIATION There is no application associated with the given file name extension. ERROR_ACCESS_DENIED Access to the specified file is denied. ERROR_DLL_NOT_FOUND One of the library files necessary to run the application can't be found. ERROR_CANCELLED The function prompted the user for additional information, but the user canceled the request. ERROR_NOT_ENOUGH_MEMORY There is not enough memory to perform the specified action. ERROR_SHARING_VIOLATION A sharing violation occurred. Windows 95/98/Me: ShellExecuteEx is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows Me/98/95 Systems.
Function Information
關於SHELLEXECUTEINFO Structure
Minimum DLL Version shell32.dll version 3.51 or later Custom Implementation No Header shellapi.h Import library shell32.lib Minimum operating systems Windows NT 4.0, Windows 95 Unicode Implemented as ANSI and Unicode versions. Contains information used by ShellExecuteEx.
Syntax
typedef struct _SHELLEXECUTEINFO { DWORD cbSize; ULONG fMask; HWND hwnd; LPCTSTR lpVerb; LPCTSTR lpFile; LPCTSTR lpParameters; LPCTSTR lpDirectory; int nShow; HINSTANCE hInstApp; LPVOID lpIDList; LPCTSTR lpClass; HKEY hkeyClass; DWORD dwHotKey; union { HANDLE hIcon; HANDLE hMonitor; } DUMMYUNIONNAME; HANDLE hProcess; } SHELLEXECUTEINFO, *LPSHELLEXECUTEINFO;Members
- cbSize
- The size of the structure, in bytes.
- fMask
- An array of flags that indicate the content and validity of the other structure members. This can be a combination of the following values.
SEE_MASK_CLASSNAME
- 0x00000001. Use the class name given by the lpClass member. If both SEE_MASK_CLASSKEY and SEE_MASK_CLASSNAME are set, the class key is used.
SEE_MASK_CLASSKEY
- 0x00000003. Use the class key given by the hkeyClass member. If both SEE_MASK_CLASSKEY and SEE_MASK_CLASSNAME are set, the class key is used.
SEE_MASK_IDLIST
- 0x00000004. Use the item identifier list given by the lpIDList member. The lpIDList member must point to an ITEMIDLIST structure.
SEE_MASK_INVOKEIDLIST
0x0000000C. Use the IContextMenu interface of the selected item's shortcut menu handler. Use either lpFile to identify the item by its file system path or lpIDList to identify the item by its pointer to an item identifier list (PIDL). This flag allows applications to use ShellExecuteEx to invoke verbs from shortcut menu extensions instead of the static verbs listed in the registry.
NoteSEE_MASK_INVOKEIDLIST
overridesSEE_MASK_IDLIST
.SEE_MASK_ICON
- 0x00000010. Use the icon given by the hIcon member. This flag cannot be combined with
SEE_MASK_HMONITOR
. Note This flag is available only in Microsoft Windows XP and earlier. It is not available in Windows Vista and later versions of Windows.SEE_MASK_HOTKEY
- 0x00000020. Use the keyboard shortcut given by the dwHotKey member.
SEE_MASK_NOCLOSEPROCESS
- 0x00000040. Use to indicate that the hProcess member receives the process handle. This handle is typically used to allow an application to find out when a process created with ShellExecuteEx terminates. In some cases, such as when execution is satisfied through a Dynamic Data Exchange (DDE) conversation, no handle will be returned. The calling application is responsible for closing the handle when it is no longer needed.
SEE_MASK_CONNECTNETDRV
- 0x00000080. Validate the share and connect to a drive letter. The lpFile member is a Universal Naming Convention (UNC) path of a file on a network.
SEE_MASK_NOASYNC
0x00000100. Wait for the execute operation to complete before returning. This flag should be used by callers that are using ShellExecute forms that might result in an async activation, for example DDE, and create a process that might be run on a background thread. (Note: ShellExecuteEx runs on a background thread by default if the caller's threading model is not Apartment.) Calls to ShellExecuteEx from processes already running on background threads should always pass this flag. Also, applications that exit immediately after calling ShellExecuteEx should specify this flag.
If the execute operation is performed on a background thread and the caller did not specify the SEE_MASK_ASYNCOK flag, then the calling thread waits until the new process has started before returning. This typically means that either CreateProcess has been called, the DDE communication has completed, or that the custom execution delegate has notified ShellExecuteEx that it is done. If the SEE_MASK_WAITFORINPUTIDLE flag is specified, then ShellExecuteEx calls WaitForInputIdle and waits for the new process to idle before returning, with a maximum timeout of 1 minute.
For further discussion on when this flag is necessary, see the Remarks section.
SEE_MASK_FLAG_DDEWAIT
- 0x00000100. Do not use; use SEE_MASK_NOASYNC instead.
SEE_MASK_DOENVSUBST
- 0x00000200. Expand any environment variables specified in the string given by the lpDirectory or lpFile member.
SEE_MASK_FLAG_NO_UI
- 0x00000400. Do not display an error message box if an error occurs.
SEE_MASK_UNICODE
- 0x00004000. Use this flag to indicate a Unicode application.
SEE_MASK_NO_CONSOLE
- 0x00008000. Use to create a console for the new process instead of having it inherit the parent's console. It is equivalent to using a CREATE_NEW_CONSOLE flag with CreateProcess.
SEE_MASK_ASYNCOK
- 0x00100000. Microsoft Windows NT 4.0Service Pack 6 (SP6), Windows 2000 Service Pack 3 (SP3) and later. The execution can be performed on a background thread and the call should return immediately without waiting for the background thread to finish. Note that in certain cases ShellExecuteEx ignores this flag and waits for the process to finish before returning.
SEE_MASK_NOQUERYCLASSSTORE
- 0x01000000. Windows Internet Explorer 5.0 and later. Not used.
SEE_MASK_HMONITOR
- 0x00200000. Use this flag when specifying a monitor on multi-monitor systems. The monitor is specified in the hMonitor member. This flag cannot be combined with
SEE_MASK_ICON
.SEE_MASK_NOZONECHECKS
- 0x00800000. Windows XP Service Pack 1 (SP1) and later. Do not perform a zone check. This flag allows ShellExecuteEx to bypass zone checking put into place by IAttachmentExecute.
SEE_MASK_WAITFORINPUTIDLE
- 0x02000000. Internet Explorer 5.0 and later. After the new process is created, wait for the process to become idle before returning, with a one minute timeout. See WaitForInputIdle for more details.
SEE_MASK_FLAG_LOG_USAGE
- 0x04000000. Windows XP and later. Keep track of the number of times this application has been launched. Applications with sufficiently high counts appear in the Start Menu's list of most frequently used programs.
- hwnd
- A window handle to any message boxes that the system might produce while executing this function.
- lpVerb
- A string, referred to as a verb, that specifies the action to be performed. The set of available verbs depends on the particular file or folder. Generally, the actions available from an object's shortcut menu are available verbs. If you set this parameter to NULL:
The following verbs are commonly used.
- For systems prior to Windows 2000, the default verb is used if it is valid and available in the registry. If not, the "open" verb is used.
- For Windows 2000 and later systems, the default verb is used if available. If not, the "open" verb is used. If neither verb is available, the system uses the first verb listed in the registry.
edit
- Launches an editor and opens the document for editing. If lpFile is not a document file, the function will fail.
explore
- Explores the folder specified by lpFile.
find
- Initiates a search starting from the specified directory.
open
- Opens the file specified by the lpFile parameter. The file can be an executable file, a document file, or a folder.
- Prints the document file specified by lpFile. If lpFile is not a document file, the function will fail.
properties
- Displays the file or folder's properties.
- lpFile
The address of a null-terminated string that specifies the name of the file or object on which ShellExecuteEx will perform the action specified by the lpVerb parameter. The system registry verbs that are supported by the ShellExecuteEx function include "open" for executable files and document files and "print" for document files for which a print handler has been registered. Other applications might have added Shell verbs through the system registry, such as "play" for .avi and .wav files. To specify a Shell namespace object, pass the fully qualified parse name and set the
SEE_MASK_INVOKEIDLIST
flag in the fMask parameter.Note If the
SEE_MASK_INVOKEIDLIST
flag is set, you can use either lpFile or lpIDList to identify the item by its file system path or its PIDL respectively.Note If the path is not included with the name, the current directory is assumed.
- lpParameters
- The address of a null-terminated string that contains the application parameters. The parameters must be separated by spaces. If the lpFile member specifies a document file, lpParameters should be NULL.
- lpDirectory
- The address of a null-terminated string that specifies the name of the working directory. If this member is not specified, the current directory is used as the working directory.
- nShow
- Flags that specify how an application is to be shown when it is opened. It can be one of the SW_ values listed for the ShellExecute function. If lpFile specifies a document file, the flag is simply passed to the associated application. It is up to the application to decide how to handle it.
- hInstApp
- If the function succeeds, it sets this member to a value greater than 32. If the function fails, it is set to an SE_ERR_XXX error value that indicates the cause of the failure. Although hInstApp is declared as an HINSTANCE for compatibility with 16-bit Windows applications, it is not a true HINSTANCE. It can be cast only to an int and compared to either 32 or the following SE_ERR_XXX error codes.
SE_ERR_FNF
- File not found.
SE_ERR_PNF
- Path not found.
SE_ERR_ACCESSDENIED
- Access denied.
SE_ERR_OOM
- Out of memory.
SE_ERR_DLLNOTFOUND
- Dynamic-link library not found.
SE_ERR_SHARE
- Cannot share an open file.
SE_ERR_ASSOCINCOMPLETE
- File association information not complete.
SE_ERR_DDETIMEOUT
- DDE operation timed out.
SE_ERR_DDEFAIL
- DDE operation failed.
SE_ERR_DDEBUSY
- DDE operation is busy.
SE_ERR_NOASSOC
- File association not available.
- lpIDList
- The address of an ITEMIDLIST structure to contain an item identifier list uniquely identifying the file to execute. This member is ignored if the fMask member does not include
SEE_MASK_IDLIST
orSEE_MASK_INVOKEIDLIST
.- lpClass
- The address of a null-terminated string that specifies the name of a file class or a GUID. This member is ignored if fMask does not include
SEE_MASK_CLASSNAME
.- hkeyClass
- A handle to the registry key for the file class. This member is ignored if fMask does not include
SEE_MASK_CLASSKEY
.- dwHotKey
- A keyboard shortcut to associate with the application. The low-order word is the virtual key code, and the high-order word is a modifier flag (HOTKEYF_). For a list of modifier flags, see the description of the WM_SETHOTKEY message. This member is ignored if fMask does not include
SEE_MASK_HOTKEY
.- DUMMYUNIONNAME
- hIcon
- A handle to the icon for the file class. This member is ignored if fMask does not include
SEE_MASK_ICON
.- hMonitor
- A handle to the monitor upon which the document is to be displayed. This member is ignored if fMask does not include
SEE_MASK_HMONITOR
.- hProcess
A handle to the newly started application. This member is set on return and is always NULL unless fMask is set to
SEE_MASK_NOCLOSEPROCESS
. Even if fMask is set toSEE_MASK_NOCLOSEPROCESS
, hProcess will be NULL if no process was launched. For example, if a document to be launched is a URL and an instance of Internet Explorer is already running, it will display the document. No new process is launched, and hProcess will be NULL.Note ShellExecuteEx does not always return an hProcess, even if a process is launched as the result of the call. For example, an hProcess does not return when you use
SEE_MASK_INVOKEIDLIST
to invoke IContextMenu.Remarks
The
SEE_MASK_NOASYNC
flag must be specified if the thread calling ShellExecuteEx does not have a message loop or if the thread or process will terminate soon after ShellExecuteEx returns. Under such conditions, the calling thread will not be available to complete the DDE conversation, so it is important that ShellExecuteEx complete the conversation before returning control to the calling application. Failure to complete the conversation can result in an unsuccessful launch of the document.If the calling thread has a message loop and will exist for some time after the call to ShellExecuteEx returns, the
SEE_MASK_NOASYNC
flag is optional. If the flag is omitted, the calling thread's message pump will be used to complete the DDE conversation. The calling application regains control sooner, since the DDE conversation can be completed in the background.When populating the most frequently used program list using the
SEE_MASK_FLAG_LOG_USAGE
flag in fMask, counts are made differently for the classic and Windows XP-style Start menus. The classic style menu only counts hits to the shortcuts in the Program menu. The Windows XP-style menu counts both hits to the shortcuts in the Program menu and hits to those shortcuts' targets outside of the Program menu. Therefore, setting lpFile to myfile.exe would affect the count for the Windows XP-style menu regardless of whether that file was launched directly or through a shortcut. The classic style—which would require lpFile to contain a .lnk file name—would not be affected.To include double quotation marks in lpParameters, enclose each mark in a pair of quotation marks, as in the following example.
In this case, the application receives three parameters: An, example:, and "quoted text".
sei.lpParameters = "An example: /"/"/"quoted text/"/"/"";Structure Information
Header shellapi.h Minimum operating systems Windows NT 3.51, Windows 95
相關推薦
用ShellExecuteEx開啟檔案,資料夾
先來看看“深入淺出ShellExecute” Q: 如何開啟一個應用程式? ShellExecute(this->m_hWnd,"open","calc.exe","","", SW_SHOW );或 ShellExecute(this->m_hWnd,"o
eclipse中檔案目錄快速定位,開啟檔案所在資料夾,在資源管理器中檢視
viewFile.bat (開啟選中的檔案獲取資料夾) Explorer/e,/select,%1 viewjava.bat (開啟選中的檔名對應的.java檔案) @echo off set calssdir=%1 set package=%2 set pack
檔案,資料夾和inode表的關係
檔案資料包括兩部分內容;元資料和資料兩部分,存放分別在元資料空間 和資料空間, 0 每個新檔案都會系統分配一個iNode節點編號 相當於人的×××號 在一個分割槽內具有唯一性,如果inode 編號不一樣 所佔的空間的指標指向的資料也不一樣比如 在 /home 建立大小 一個G的檔案 f1 把 f1檔案複製
JAVA io流筆記02 操作目錄,遍歷檔案,資料夾
package FileText; import java.io.File; //操作目錄 //mkdir() 建立目錄,必須保證父目錄存在,如果父目錄不存在,建立失敗 //mkdirs() 建立目錄,如果父目錄不存在,直接建立父目錄 //list() 輸出當前路徑下檔名 //listFil
檔案,資料夾操作大全
ios開發經常會遇到讀檔案,寫檔案等,對檔案和資料夾的操作,這時就可以使用NSFileManager,NSFileHandle等類來實現。 下面總結了各種常用的操作: 1,遍歷一個目錄下的所有檔案 1 2 3
android專案裡面檔案,資料夾作用介紹res
在Android專案資料夾裡面,主要的資原始檔是放在res資料夾裡面的 1:assets資料夾是存放不進行編譯加工的原生檔案,即該資料夾裡面的檔案不會像xml,java檔案被預編譯,可以存放一些圖片,html,js, css等檔案。 2:res資料夾裡面的多個資料夾的各自介紹 res/anim/ XML
[ahk]右鍵選單開啟檔案所在資料夾(快捷方式也適用)
功能:能開啟檔案所在路徑 並定位到檔案上,能正確解析lnk所指檔案的目錄。 copypath.ahk 檔案如下: #NoTrayIcon Clipboard=%1% openpath.ahk檔案如下: #NoTrayIcon Clipboard=%1% Run,
Eclipse中一鍵開啟檔案所在資料夾
原來公司裡經常要把修改的檔案Copy出來發給配置組整理,準備上線版本,這就需要頻繁定位到檔案所在目錄。 在經歷了無數次煩瑣的滑鼠點選後,終於受不了在網上找到了一些解決方案。無外乎兩種,配置外部工具和Easy Explorer 外掛。 我比較喜歡 External To
//利用 DirectoryInfo遞迴遍歷資料夾,刪除所有檔案,資料夾
static void Test01(string path) { DirectoryInfo dir = new DirectoryInfo("d:/aa");//操作目錄,這裡我們首先aa目錄裡面新增一些子檔案和資料夾
用批處理檔案自動備份檔案及資料夾,並自動刪除n天前的檔案_DOS/BAT
下是備份的批處理,新增到”計劃任務”中,設定時間自動執行 程式碼如下: @echo off rem 格式化日期 rem date出來的日期是"2006-02-22 星期三",不能直接拿來使用,所以應該先格式化一下 rem 變成我們想要的。date
c 判斷檔案或資料夾是否存在,多種方法, 為什麼從一開始就不直接來個統一的呢?
具體內容,請看: https://blog.csdn.net/u012494876/article/details/51204615 判斷檔案或資料夾是否存在,竟然有這麼多方法: GetFileAttributes() CreateFile() _access() Find
Linux下用ls和du命令檢視檔案以及資料夾大小 (轉載)
ls的用法 ls -l |grep "^-"|wc -l或find ./company -type f | wc -l 檢視某資料夾下檔案的個數,包括子資料夾裡的。 ls -lR|grep "^-"|wc -l 檢視某資料夾下資料夾的個數,包括子資料夾裡的
刪除檔案或資料夾不成功,顯示被程序佔用的解決方法
我是在解除安裝SQLServer2008的最後一步,刪除c盤下的program Files下Microsoft SOL Server資料夾下的90資料夾時出現該錯誤。解決方案如下: 1.開啟工作管理員,點選標題欄的效能,在點選資源監視器,在標題欄裡點選cpu,再在關聯的控制代碼裡搜尋
File-用遞迴刪除某資料夾(資料夾下可能有檔案或資料夾)
利用遞迴演算法刪除某資料夾(包括其所有的子檔案及資料夾) import java.io.File; public class Dem01 { public static void main(String[] args) { File file = new F
Python中os.path和os.makedirs的運用(判斷檔案或資料夾是否存在,建立資料夾)
import os import numpy as np data = np.array([1, 2, 3]) if not os.path.exists("./data/"): print("# path not exists") os.makedirs("./data/")
C#如何操控FTP,獲取FTP檔案或資料夾列表,獲取FTP檔案大小,FTP上傳,FTP刪除檔案,FTP新建資料夾、刪除資料夾
C#如何操控FTP 出處:http://www.cnblogs.com/rond/archive/2012/07/30/2611295.html,http://www.cnblogs.com/rond 關於FTP的應用免不了要對FTP進行增刪查改什麼的。通過搜尋,整理和修改
Linux基礎02:磁碟操作,檔案許可權、檔案及資料夾操作、網路服務
1.Linux磁碟與U盤操作 1.1 顯示系統的磁碟空間用量 ##du命令也是檢視使用空間的,但是與df命令不同的是Linux du命令是對檔案和目錄磁碟使用的空間的檢視 du -sh ##查目錄使用大小(-s表示總結) ## du -sh /bin ##df命令用於顯示磁碟分割槽
快速上傳檔案到資料夾.感覺方便好用.
1.介面HTML程式碼.enctype="multipart/form-data" 不可缺. <form id="uploadFileForm" method="post" enctype="multipart/form-data"> <div> <input t
[AHK]怎麼開啟滑鼠選中的檔案所在資料夾啊
;--------------------- ;功能:開啟滑鼠選中的檔案所在資料夾 ;特性: ;可以相容檔案、檔案快捷方式、資料夾快捷方式 ;還能在資源管理器中定位該目標 ;--------------------- ;作者:sunwind 整理完善 ;來源:CSDN
Windows CMD 批量修改檔案包括照片,文件,資料夾名字
1, 名字隨便起的! 跟Linux一樣。Cd 可以進入你想進去的目錄! dir命令檢視目錄下的檔案列表,檢視該目錄下的所有檔案: dir /a。就可以查詢到啦! 2,進入裡面,任意找一個照片。先右鍵檢視屬性,複製路徑。用瀏覽器開啟,就可以看到! Ct