windows-shell

Trying to use Shell object and FileSystemObject in VBScript for file manipulation

一个人想着一个人 提交于 2021-01-28 19:51:36
问题 I am trying to recursively loop through hundreds of directories, and thousands of JPG files to gather sort the files in new folders by date. So far, I am able to individually GetDetailsOf the files using the Shell NameSpace object, and I am also able to recursively loop through directories using the FileSystemObject. However, when I try to put them together in functions, etc, I am getting nothing back when I try to get the DateTaken attribute from the photo. Here is my code so far:

How to use IFileOperation from ctypes

末鹿安然 提交于 2020-08-14 04:28:26
问题 I want to use IFileOperation to copy files from python code - It's fast(er than python) You get a nice dialog Doesn't block Python On Windows 10, Python 3.8 - import ctypes ctypes.windll.shell32.IFileOperation doesn't seem to exist. How can I reach IFileOperation (Not the deprecated SHFileOperation API) using ctypes ? 回答1: Sure, it's located in pythoncom and shell for constants, for example: from win32com.shell import shell import pythoncom # create an instance of IFileOperation fo =

How to use IFileOperation from ctypes

纵然是瞬间 提交于 2020-08-14 04:24:52
问题 I want to use IFileOperation to copy files from python code - It's fast(er than python) You get a nice dialog Doesn't block Python On Windows 10, Python 3.8 - import ctypes ctypes.windll.shell32.IFileOperation doesn't seem to exist. How can I reach IFileOperation (Not the deprecated SHFileOperation API) using ctypes ? 回答1: Sure, it's located in pythoncom and shell for constants, for example: from win32com.shell import shell import pythoncom # create an instance of IFileOperation fo =

Name program in the Open With… context menu

孤街醉人 提交于 2020-08-06 11:12:21
问题 How can I customize the name of the program visible in the Open With... context menu in Windows XP and 7? For example: I have 3 versions of a product named XYZ installed on Windows; .x files are associated to xyz.exe (COM registration). All versions of the product have the same .exe name. Now in the Open With... context menu, it shows XYZ program 3 times (3 versions are installed) but with the same name. How do I make it show the version as well? I.e. XYZ V1.0 , XYZ V2.0 , etc. 回答1: Save the

Setting the folder view in a CFileDialog (MFC)

蓝咒 提交于 2020-06-27 17:57:07
问题 Is there a standard way to set the folder view in a CFileDialog (Vista-style enabled)? I'm trying to get it to show Details view and some custom columns. I've implemented a Windows 7 column handler that displays app-specific info for files created by my app. However, in order to view these custom columns in an Explorer window or a common file dialog, I have to manually set the folder view to Details then select the specific columns I want. This works fine, but the goal is for the file

DLL load failed: the specified module could not be found Windows 10 shell

旧巷老猫 提交于 2020-02-15 18:10:55
问题 I'm trying to run a Python script from the Windows shell, but when I do python path\to\file\script.py I get an error "DLL load failed: The specified module could not be found" and it traces back to the line where I import numpy. C:\Users\Admin>python path\to\file\script.py Traceback (most recent call last): File "path\to\file\script.py", line 8, in <module> import numpy as np File "C:\Users\Admin\Anaconda3\lib\site-packages\numpy\__init__.py", line 140, in <module> from . import _distributor

DLL load failed: the specified module could not be found Windows 10 shell

邮差的信 提交于 2020-02-15 18:10:46
问题 I'm trying to run a Python script from the Windows shell, but when I do python path\to\file\script.py I get an error "DLL load failed: The specified module could not be found" and it traces back to the line where I import numpy. C:\Users\Admin>python path\to\file\script.py Traceback (most recent call last): File "path\to\file\script.py", line 8, in <module> import numpy as np File "C:\Users\Admin\Anaconda3\lib\site-packages\numpy\__init__.py", line 140, in <module> from . import _distributor

DLL load failed: the specified module could not be found Windows 10 shell

夙愿已清 提交于 2020-02-15 18:10:45
问题 I'm trying to run a Python script from the Windows shell, but when I do python path\to\file\script.py I get an error "DLL load failed: The specified module could not be found" and it traces back to the line where I import numpy. C:\Users\Admin>python path\to\file\script.py Traceback (most recent call last): File "path\to\file\script.py", line 8, in <module> import numpy as np File "C:\Users\Admin\Anaconda3\lib\site-packages\numpy\__init__.py", line 140, in <module> from . import _distributor