原博文
2013-01-02 15:58 −
一、利用explorer.exe
import os
# 利用explorer.exe执行
start_directory = r'D:\test...
0
2093
相关推荐
2015-04-28 17:56 −
Python打开外部文件有很多方法, os.popen打开外部程序,但发现只能打开文件所在目录的文件 os.system可打开外部文件os.system(command) command 要执行的命令,相当于在Windows的cmd窗口中输入的命令。如果要向程序或者脚本传递参数,可以使...
0
54292
2013-01-28 14:58 −
private void btnFile_Click(object sender, EventArgs e) { OpenFileDialog fileDialog = new OpenFileDialog(); fileDialog.Multiselect = true; fileDialog....
2011-04-22 13:17 −
//DirBrowser.h#pragma onceclass CDirBrowser{public: CDirBrowser ( bool fRecent = false, const TCHAR* pszTitle = TEXT( "选择目录" ) ); ~CDirBrowser( vo...
0
942
2015-07-10 16:23 −
private void btnFile_Click(object sender, EventArgs e) { OpenFileDialog fileDialog = new OpenFileDialog(); fileDialog.Multiselect = true; fileDialog.T...
2015-03-20 20:26 −
private void btnFile_Click(object sender, EventArgs e) { OpenFileDialog fileDialog = new OpenFileDialog(); fileDialog.Multiselect = true; fileDialog....
2017-05-27 17:05 −
选择文件夹 private void btnSelete_Click(object sender, EventArgs e) { FolderBrowserDialog dialog = new FolderBrowserDialog(); dialog.D...
0
2849
2012-12-09 12:04 −
1 BOOL OpenFilePath( LPCTSTR lpszFile ) 2 { 3 HINSTANCE hInst; 4 HRESULT hr; 5 LPITEMIDLIST pidFile; 6 TCHAR szFile[MAX_PATH]; 7 USE...
0
145
2010-04-13 05:59 −
第一种方法,使用SelectDirectory 函数 ,在ShellApi中 procedure TForm2.BtSelectPathClick(Sender: TObject); var strCaption,strDirectory:String; &...
2012-11-01 10:26 −
1 TCHAR szPath[MAX_PATH]; //存放选择的目录路径 2 CString str; 3
4 ZeroMemory(szPath, sizeof(szPath));
5
6 BROWSEINFO bi;
7 bi.hwndOwne...
0
1294
2019-03-29 14:41 −
using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using UnityEngine; //unity3d调用win32打...