windows-shell

Windows batch: run a process in background and wait for it

回眸只為那壹抹淺笑 提交于 2019-12-24 01:54:44
问题 I need to start 2 background processes from my batch job and then wait for them. Unix shell analogue is: myprocess1 -flags1 & pid1=$! myprocess2 -flags2 & pid2=$! wait ${pid1} wait ${pid2} Any ideas? 回答1: You could solve it, using a start wrapper. The wrapper starts a process with start /wait and after the process is finished it deletes a file for signaling. The first process you start through the wrapper, the second you can start with start /wait . Then you only need to wait for the file.

Change File Icons in C#

喜夏-厌秋 提交于 2019-12-23 22:29:14
问题 Can you suggest something for changing the files icons in C#? What I means here is that does C# has any class that we can use to change the icons of files. For example, can I replace notepad file icon with doc file icon in c#? I know we can extract the icon of a file, but I am looking for applying new icon to a file. let me try to explain it in details. I am working on a windows app that process files. This app creates a special folder and user can create files and folders into this folders.

Display a complete application in Windows 7 taskbar?

天涯浪子 提交于 2019-12-23 13:08:19
问题 On Windows 7, is it possible to create an application to be displayed in the taskbar? What I have in mind is a small widget like a media player or a weather widget, etc. Something like the mockup below: Any idea? 回答1: Yes it's possible. What you are looking for is a toolbar or sometimes referred to as "desk band": http://msdn.microsoft.com/en-us/library/windows/desktop/cc144099.aspx#desk_bands 来源: https://stackoverflow.com/questions/11345253/display-a-complete-application-in-windows-7-taskbar

What languages to write windows shell extensions

六月ゝ 毕业季﹏ 提交于 2019-12-23 09:48:10
问题 I know how to write shell extesions in python. The drawbacks are it does not work on 64 bit Windows I am unsure how creating a python process everytime something “happens” reduces performance. I know how to write shell extensions using .Net (C#) The drawbacks are discouraged by MS I am unsure how this reduces performance. (does it?) I have seen shell extenions written in (free)pascal. Are there drawbacks using this approach Does this work with 64bit windows. Obviosly one can write shell

Changing the Shell registry

只愿长相守 提交于 2019-12-23 04:45:58
问题 At the start of my application i change the shell value of the registry to a custom shell and kill the explorer.exe (It is done outside the application), i want to allow a backdoor to return to the original shell and bring back the explorer.exe. brining the process back works fine for me but when i run my code to change the registry value no exception is thrown but the value doesn't change when i check in regedit, this is my code (saw it here on a different question) : RegistryKey regKey =

icon overlay handlers for namespace extension

南笙酒味 提交于 2019-12-23 04:06:39
问题 I am developing namespace extension which gives a virtual view of files on a server. In this view, I need to provide different states(in use, offline, out of sync, etc) of a file using overlay icons. I was read through article implementing overlay handler, and thought I will try to handle this in one of our overlay handlers, which implement IShellIconOverlayIdentifier interface. I see that IShellIconOverlayIdentifier::IsMemberOf(), and other functions are called only when I access files on

Changing the icon shown in a taskbar group for a multi window application

寵の児 提交于 2019-12-22 10:12:23
问题 On Windows 7 an application can control how to group their Windows on the taskbar. Windows has some default settings related to the executable, how the shortcut was created, the name of the program, etc. to apply some default grouping. The problem with host based applications like Java, is that the same executable is used by many programs so Windows has some registry settings to set that javaw.exe is a host app. When this happens, applications must configure at runtime how to group Windows

How to tell if there's no default file extension association on OS post-Windows XP?

自作多情 提交于 2019-12-22 08:53:03
问题 Going back to the days of Windows XP one could use the following code to tell if there's no file association existed for an extension: TCHAR buffPath[MAX_PATH] = {0}; DWORD dwszBuffPath = MAX_PATH; HRESULT hR = ::AssocQueryString( ASSOCF_NOFIXUPS | ASSOCF_VERIFY, ASSOCSTR_EXECUTABLE, _T(".weirdassextension"), NULL, buffPath, &dwszBuffPath); if(hR != S_OK && hR != E_POINTER) { //Association does not exist } But since Windows 8, the AssocQueryString API returns S_OK and buffPath is set to

Manipulating the Windows 7 Explorer navigation pane

妖精的绣舞 提交于 2019-12-22 06:50:12
问题 Based on the answers I received at superuser, it's clear that I'll have to add the following to a custom Explorer Window launcher. I want to launch a rooted explorer view, and for just that window make the navigation pane look like the old Windows XP folders pane. I already wrote a program to place shortcuts to these folder views on the Start Menu, so changing the shortcuts to run through a launcher is trivial. Here's the XP folders pane: Here's the Windows 7 Navigation Pane: (source: 280z28

Handle file drop in TShellListView descendant

谁说胖子不能爱 提交于 2019-12-22 04:56:41
问题 I am attempting to create a descendant of TShellListView that accepts files dropped from Windows Explorer. I want to handle the drag/drop in my component definition without having to implement it in any of the applications that use the component (I've found examples of accepting files dropped from Windows Explorer, but all at the application / TForm level). I'm calling DragAcceptFiles() in my constructor, and I've defined a message handler for WM_DROPFILES. However, when I use this component