explorer

Explorer Integration in the Context Menu but using the already running instance

▼魔方 西西 提交于 2019-12-30 11:08:00
问题 I want to check for the existence and if it doesn't exist add some actions in the Explorer's right click (context) menu. Besides of the above requirement (for which one can find easily solutions on web) I want to add one more: Suppose that I register the following commands: "Command #1" - triggers 'C:\MyProg.exe /cmd1' "Command #2" - triggers 'C:\MyProg.exe /cmd2' ... (aso.) How do I check if there is already a running instance of MyProg.exe and passing it the appropriate command/command line

Pyinstaller setting icon

天大地大妈咪最大 提交于 2019-12-29 02:47:08
问题 I use command that: pyinstaller.exe --icon=test.ico -F --noconsole test.py All icons do not change to test.ico Some icons remain default(pyinstaller) icon... Why? all icon change OS -> windows 7 32bit, windows 7 64bit(make exe file OS) remain default icon OS -> windows 7 64bit(other PC) 回答1: I know this is old and whatnot (and not exactly sure if it's a question), but after searching, I had success with this command for --onefile : pyinstaller.exe --onefile --windowed --icon=app.ico app.py

Java - Sort Strings like Windows Explorer

百般思念 提交于 2019-12-28 03:03:47
问题 I am trying to use code suggested by Sander Pham on another question. I need my java ArrayList of string names to be sorted like Windows Explorer does. His code worked for everything but for one issue. I would have liked to comment onto that question, but I need more reputation points to comment. Anyways... He suggested to use a custom comparator implemented class and use that to compare the string names. Here is the code of that class: class IntuitiveStringComparator implements Comparator

DDE通信研究

笑着哭i 提交于 2019-12-25 07:19:43
作为一个安全研究人员来讲,听到最多关于DDE的东西可能就是 office DDE 攻击 这种钓鱼攻击手法。 为什么只有Office可以进行DDE攻击? 有哪些软件默认支持DDE协议? DDE还可以做什么? DDE通信还有其他功能命令,如:动态修改Excel表格内容。 本文只针对双击桌面上的xls文件时,Explorer通过DDE将文件路径传给Excel的过程进行研究。 1)研究背景 大部分Office系列软件如Excel、Word等程序默认支持基于Windows消息机制的DDE通信协议。使用DDE的程序,如Excel软件在启动时的命令行参数只有" /dde" 这样Excel就会默认创建一个隐藏的窗口作为DDEServer,并等待接收用户双击桌面xls文件时,DDE Client(Explorer.exe)发来的DDE消息。 2)DDE会话流程 一个程序既可以作为DDE服务器,也可以作为DDE客户端,两者通讯的标识是彼此的窗口句柄HWND。微软建议每次建立会话都应该建立不同的窗口句柄。 第一步: 建立会话,客户端必须通过SendMessage广播一条WM_DDE_INITIATE消息给所有窗口,来定位Excel的DDE Server。 如果lParam的LOWORD为NULL,任何DDEServer可以回复这个消息。DDE Server收到一个WM_DDE_INITIATE消息后

How to create a IconHandler used by the shell in c++?

别说谁变了你拦得住时间么 提交于 2019-12-25 04:14:40
问题 I tried to code an icon handler in c++ but i have some issues to do this. I followed the turoriel from codeproject The difference with this tutorial is i wanna code my dll with an ATL project from the wizard of visual studio (2013). So i create a new ATL project and i had a COM +1 class to this project (this the code of the header). The problem is it seams that my dll is attach but is detach right after. I'll put some code and more explication bellow : extern "C" BOOL WINAPI DllMain(HINSTANCE

How to open a .txt file from internal storage in a textview on Android studio? [duplicate]

不问归期 提交于 2019-12-24 19:36:07
问题 This question already has answers here : Android open text file to read after Intent.ACTION_GET_CONTENT (1 answer) How to get String from a .txt file in android (1 answer) How read text file in Android? (3 answers) Android: Reading txt file using implicit intent (1 answer) Closed 20 days ago . trying to open a simple .txt file from the file explorer into textview, why this is so hard ? I think the problem is on the path, for some reason I can't get the right path when I use the file explorer.

Method to implement Windows Explorer icon overlays with Java

允我心安 提交于 2019-12-24 07:13:53
问题 I am writing a cloud-sync application in Java with .jni integration to virtualize a cloud file-system in windows explorer. Now i want to implement icon overlays like owncloud to see the state of a node like this: I found some solutions for C#. Is this also possible with Java if using a jni interface to get access to the Icon Handlers. Anyone knows a existing solution? P.S. Tha last question for this is 4 years old so there is eventually a new solution for modern systems with java8 in

Matlab : open OS explorer window only if not already open

我怕爱的太早我们不能终老 提交于 2019-12-24 06:37:32
问题 I'm opening a folder in Windows explorer from within matlab with the following line : system('explorer.exe /select,./my_folder/my_file.tif'); It works well, even with the relative path for Matlab "current folder" with "./". Note that it also selects the specified file, which is what I want. However, I would like to open this window only if the same path isn't already open. Right now, I get several copies of the same window and it's annoying. Do you know any way to do this ? Thanks, Ghislain

Java accessing Window's “Open with…” list

扶醉桌前 提交于 2019-12-24 02:25:13
问题 I would like to get the list of "Open with..." contextual menu in Windows XP/Vista/7 from Java. From the Windows Registry, I've managed to find a way to get the command to launch applications. But I did not find out how to get these applications names and icons as shown in the Explorer Open with list contextual menu. Also, the way to manage these informations seems to change from one version of the OS to another. Is there any library I could use with Java for this ? Thanks. 回答1: You don't

Programatically deleted files still show up in Windows Explorer

杀马特。学长 韩版系。学妹 提交于 2019-12-24 01:53:37
问题 My app polls a directory on the SDcard for the appearance of new files that where dropped there by the user from Windows file explorer over the USB connection. When a new file appears, my app processes it, and then deletes it, however the file still shows up in Windows file explorer. I know the file is gone because it no longer appears in the DDMS file explorer, and my poller doesn't get triggered again. Any insights into how Android interacts with Windows file explorer would be appreciated.