Menu
  • HOME
  • TAGS

Check if a User is renaming a file in File Explorer at the Moment C#

c#,hook,explorer,shell32

Your file navigation enhancement should not risk interfering with the behaviour currently present in Windows Explorer. Hence: Ctrl+Space Using a new command such as Ctrl+Space will not get triggered during a file-rename operation plus your application will work using the standard baked in Windows OS user-commands (with a little...

how to show only folders in jtree

java,file,jtree,explorer

Well I used the code provided by @ug_ I was still getting the files, after searching the net i came up with this lines of code and they work. FilenameFilter directoryFilter = new FilenameFilter() { @Override public boolean accept(File file, String name) { return new File(file, name).isDirectory(); } ...

set overlay Icon to running explorer without restart

visual-c++,overlay,explorer,shell-extensions

To set overlay Icon needs to implement a IShellIconOverlayIdentifier interface write registry entries in registry for COM dll registration and one more registry requires for overlay icon identifier registration see below: Key:"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\TestShellIconOverlayIdentifiers" with default value [CLSID_of_registered_DLL] After this some functions need to call while registration to insert overlay Icons in...

how to make Java PDF exclusive file explorer/viewer [closed]

java,file,pdf,explorer

If I were you, I would use JFileChooser. It is built into java by default. You can also filter the files so that only .pdf documents show up. From there, there are several libraries that let you extract text from the pdf such as PDFBox.

SHGetImageList returns corrupted folder icon on Windows 7

windows,explorer

Have the same problem. But I use workaround: function ExtractFolderIcon: HICON; var Info: TSHStockIconInfo; Lib: HMODULE; begin Info.cbSize := SizeOf(Info); OleCheck(SHGetStockIconInfo(SIID_FOLDER, SHGSI_ICONLOCATION, Info)); Lib := LoadLibrary(Info.szPath); if Lib = 0 then RaiseLastOSError; try Result := LoadImage(Lib, MAKEINTRESOURCE(-Info.iIcon), IMAGE_ICON, 256, 256, LR_DEFAULTCOLOR); finally FreeLibrary(Lib); end; end; Left image was received with...

Propfind: Windows Explorer not showing first file

c#,webdav,explorer

I have found the solution to this problem. The current folder must be included in the response body, and not only it's children. And Windows Explorer doesn't show the first response element. What the XML from above should be: <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>http://localhost:8888/Folder/</D:href> <D:propstat> <D:prop> <D:creationdate>2014-04-22T12:30:30+15:00</D:creationdate> <D:displayname>Folder1</D:displayname> <D:getcontentlanguage />...

How to Change File Extension, Windows/Windows Explorer

android,windows,explorer

maybe if you deactivate new application to open .apk files your problem resolved. go to regedit (type regedit in RUN and press OK). from file menu, export the registry to restore if it will be need next. go to this address in registry: “HKEY_CURRENT_USER \Software \Microsoft \Windows \CurrentVersion \ Explorer...

To show multimedia content(e.g audio,video,jpeg) from custom folder to a Dialog as file explorer.

android,video,explorer,multimedia

File dir = new File( Environment .getExternalStoragePublicDirectory(File.separator), "custom folder name"); String[] files = null; if (dir.exists()) { files = dir.list(); } Now with this files array i extraceted each element and checked its extension to get the mime type and showed accordingly.It worked for me.Most simple code for what...

Adding a default icon to a dynamically generated .NET assembly

c#,.net,icons,.net-assembly,explorer

I ended up using CodeDom instead of dynamic assembly generation. Not a personal preference but it gave me more control over resources and assembly generation options by specifying arguments to the compiler.

Execute Windows Explorer to copy/move/delete file from VB.NET app

vb.net,file,folder,explorer

I don't think they use Windows Explorer. I think they just do it programmatically, like anyone would do: My.Computer.FileSystem.CopyFile("C:\Users\Vincent\Test.txt", "C:\Test.txt", UIOption.AllDialogs) The UIOption.AllDialogs should show Explorer's copy progress dialog. Read more: https://msdn.microsoft.com/en-us/library/ms127965(v=vs.110).aspx https://msdn.microsoft.com/en-us/library/microsoft.visualbasic.fileio.uioption(v=vs.110).aspx...

Run a batch file at folder's context menu

windows,batch-file,cmd,registry,explorer

Use &. On Windows 8.1: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\cmdDD] @="CMD + setenv" [HKEY_CLASSES_ROOT\Directory\shell\cmdDD\command] @="cmd.exe /s /k pushd \"%V\"&call \"D:\\full\\path\\to\\setenv.cmd\" \"%V\"" ; Note that all inner " double quotes and \ reverse slashes in the data are escaped with a \ backslash. In fact, data are as follows: ==>reg...

How can I programmatically use Windows File Explorer to perform a Search?

c#,wpf,explorer,file-search

You can use the .ms-search file format to express a saved search. If you open this file format it will launch a File Explorer with the search conditions applied. If you already have a File Explorer window opened with a search applied, you can save that using the 'save search'...

How can I tell if a process is not running?

vb.net,explorer

Dim sExplorerName As String = "explorer" Dim oProcessList() As Process Dim bFound As Boolean = False ' Get a list of all running processes oProcessList = Process.GetProcesses() ' Check each process to see if it is explorer For Each oProc As Process In oProcessList If (sExplorerName = oProc.ProcessName) Then '...

Subclass Windows File Explorer

xml,windows,file,user-interface,explorer

When you call GetOpenFileName set OFN_ENABLEHOOK flag. It allows you to get notifications from open dialog. One of notifications is CDN_INCLUDEITEM. Inside your handler you will have IShellFolder of folder and PItemIDList of current file to insert in file list. If your hook procedure returns zero, the dialog box excludes...

Grayscale images in Joomla supporting IE 10 [closed]

css,svg,joomla,explorer,grayscale

For IE10/11 you must display the image via an SVG <image> element and not an html <img> element. Only SVG elements can be subject to filters in IE. i.e. <svg height="30" width="105"> <image class="partner" xlink:href="/joom/images/partners/image.png" height="30" width="105"> <desc>image logo</desc> </image> </svg> ...

CMD: File tasks, open directory and select file

batch-file,cmd,explorer

explorer.exe /select,c:\windows\system32\selected_file.txt See https://support.microsoft.com/en-us/kb/130510...

Does Explorer's “virtual filesystem” have public API?

windows,winapi,filesystems,explorer

Given that the same layout can be observed in the builtin open/save/directory picker dialogs, one can assume that there's an (internal?) API exposing this "VFS". Actually, the pickers displays a real Explorer window embedded within their UI and let Explorer handle the file system. But yes, there is a...

java - Eclipse Helios SR 2 Package explorer error

eclipse,ide,package,explorer,helios

Basically in eclipse when you create a project, you create in a workspace. By default the project gets stored in the work space folder. However you can give a specific directory to save your project The work space folder will usually have information regarding the projects. In eclipse we have...

Is there a way to build projects or solutions by right clicking them in explorer?

msbuild,explorer

If you know the command to do so or generate a BAT file that takes the solution file as an argument you can create a registry entry in HKEY_CLASSES_ROOT*\shell\Compile solution...\command. You might be able to even use the .__sln entry in there somehow.

Getting the results of an explorer shell search in a program that was launched from a search window

windows,explorer

When user opens file in Windows Explorer shell enumerates all available context menu commands and run first default command. So just create new context menu shell extension and register it on your file extension ProgID. Your shell extension must implement 3 interfaces: IObjectWithSite, IShellExtInit and IContextMenu. Don`t forget to create...

Showing 'This folder is empty' background when my shell extension folder is empty

winapi,explorer,shell-extensions,hresult

Your IEnumIDList implementation must implement IObjectWithSite. Sample of implementation: var ServiceProvider: IServiceProvider; ShellBrowser: IShellBrowser; ShellView: IShellView; FolderView2: IFolderView2; begin if not Assigned(ASite) then Exit; OleCheck(ASite.QueryInterface(IServiceProvider, ServiceProvider)); try OleCheck(ServiceProvider.QueryService(SID_STopLevelBrowser, IShellBrowser, ShellBrowser)); try OleCheck(ShellBrowser.QueryActiveShellView(ShellView)); try OleCheck(ShellView.QueryInterface(IFolderView2,...

c# What are these volume changing codes/messages

c#,audio,explorer

These are AppCommand messages. 0x319 is the Win32 Windows MSG for WM_APPCOMMAND, and the messages are more accurately APPCOMMAND_VOLUME_UP, etc... AppCommand messages are messages sent to windows, which are handled at a global level and perform certain application functions. These tend to be linked to Keyboard hotkeys and mouse button...

How to capture File explorer with LoadRunner?

sap,explorer,loadrunner

After having talked with HP Support experts, the answer is really simple: is not possible to record any Windows File explorer window by using the SAPGUI protocol. It's not supported.

Java - Sort Strings like Windows Explorer

java,windows,sorting,comparator,explorer

This is my second try to answer this. I used http://www.interact-sw.co.uk/iangblog/2007/12/13/natural-sorting as a start. Unfortunatly I think I found there problems as well. But I think in my code these problems are correctly adressed. Info: Windows Explorer uses the API function StrCmpLogicalW() function to do its sorting. There it is...

C# Outlook 2013 Addin Accessing Explorer

c#,vsto,outlook-addin,explorer

You need to use System.IO.* class for checking whether a folder exists or not. For example, the Exists method of the Directory or File classes from the System.IO namespace determines whether the given path refers to an existing directory/file on disk: if(File.Exists(path)) { // This path is a file ProcessFile(path);...

Implement Explorer ContextMenu and pass multiple files to one program instance

c#,.net,vb.net,windows,explorer

You Do want a ShellExtension What you want is not quite as simple as you think. The normal behavior for multiple file selections is to open each in a new Window/App instance. Actually, it just sends the selected files to the registered app and leaves it up to the app...

TFS Windows Explorer Integration - Getting version history outside of VS

visual-studio-2013,tfs,explorer,windows-explorer,tfvc

Shell integration can be installed as part of the Visual Studio Power Tools for Team Foundation Server 2013. Make sure you check the "Windows Shell Extensions" option. To see the revision graph, I am afraid you still need to open Visual Studio and use the Track Changeset feature which seems...

Use PowerShell to add and remove shortcuts from Explorer's favorite bar

powershell,windows-7,powershell-v2.0,explorer

Favourites in Explorer are shortcuts in \Links folder in your profile. So if you want to remove 7346: rm $home\Links\7346.lnk Creating one is rather cumbersome in PS: $WshShell = New-Object -comObject WScript.Shell $Shortcut = $WshShell.CreateShortcut("$Home\Links\9999.lnk") $Shortcut.TargetPath = "$home\9999" $Shortcut.Save() Adjust target path if 9999 doesn't sit in the root of...

Explorer (11) font include doesn't work

css,fonts,explorer

Try more formats like this (include WOFF): @font-face { font-family: 'BankGothicMdBTMedium'; src: url('style/bankgthd-webfont.eot'); src: local('BankGothic Md BT'), local('BankGothicBTMedium'), url('style/bankgthd-webfont.woff') format('woff'), url('style/bankgthd-webfont.ttf') format('truetype'), url('style/bankgthd-webfont.svg#webfontNgZtDOtM') format('svg'); font-weight: normal; font-style: normal; } HTML, BODY { font-family: BankGothicMdBTMedium, tahoma, lucida, courier; font-size: 18px; } ...

Keypress event sequence on IE

javascript,events,sequence,keypress,explorer

I guess you can use setTimeout like this: var one = document.getElementById('one'); var two = document.getElementById('two'); one.addEventListener('keypress', function(e) { setTimeout((function(elem){ return function(){ elem.focus(); }; })(e.target.nextElementSibling),0); }); <input id="one" type="text"/><input id="two" type="text"/> The setTimeout will fire the function on the next stack of execution, so after the element is filled....