windows-explorer

File explorer java

独自空忆成欢 提交于 2019-12-10 11:30:10
问题 I'd like to have some kind of file browser like Windows Explorer inside a Java Application. I just want something that's able to list file inside a folder recursively. Is there a simple way to do this ? I already tried to use JFileChooser but it's not what I want. 回答1: This snippet allows you to list all files recursivly. You could use the data to populate a JTree see this tutorial public class Filewalker { public void walk( String path ) { File root = new File( path ); File[] list = root

How to mimic a drive in Windows

南楼画角 提交于 2019-12-10 10:33:13
问题 I recently had a look at the Google Data API. Its looking good. What I want to do is create a "G Drive" Type application. This will basically come up as a drive in explorer with its own icon. From there you will be able to drag and drop operations to and from Google Docs, and create folders. Yes I've heard of Gladinet and Memeo, but both are not great solutions. I've decided to build one from the ground up, and release it as open source, once its in Alpha. Anyways to get started I need some

“Build” item in Windows Explorer's context menu of a VS solution file?

▼魔方 西西 提交于 2019-12-09 09:35:40
问题 I wonder why this is not integrated by default. I'd like to have an item in Windows Explorer's file context menu of a VS solution file to build it. Is there a tool for this? Or do I have to create this myself? 回答1: MSBuild Shell Extension have been there for years, http://msbuildshellex.codeplex.com/ But you might also try out my new project, http://msbuildlaunchpad.codeplex.com/releases/view/45368 It is quite easy to use. MSBuild Launch Pad http://i3.codeplex.com/Project/Download

How do I remove the “wrench” button on the balloon tooltip? [closed]

自作多情 提交于 2019-12-08 20:47:51
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I want to hide the wrench button on the balloon tooltip Does anyone know how? Is it possible to disable/remove the wrench button next

Open a folder in Windows Explorer and select a file works second time only

倾然丶 夕夏残阳落幕 提交于 2019-12-08 17:13:55
问题 Using the code described in this answer of the SO posting "Open folder and select the file", I've created this function: public static void OpenExplorerAndSelectFile(string filePath) { Process.Start( @"explorer.exe", string.Format(@"/select, ""{0}""", filePath)); } This function works well, with one small issue: Calling the function for the first time for a specific file, Windows Explorer is correctly shown with the folder of the file, but it does not select the file . Calling the same

.NET: How Do I Create File Icon Overlays

帅比萌擦擦* 提交于 2019-12-08 16:37:41
问题 I'm trying to add different icon overlays over the icons of various files (note: not all the files of a certain type, just certain files). If you don't get what I mean, I'm referring to what programs like TortoiseSVN, TortoiseHG, Dropbox, etc. do. Can this be done in .NET? If so, how? I'm hoping there's a library out there for this. I found this CodeProject article about something like this, but it's not .NET. Thanks in advance. 回答1: No, it's not .NET. Shell programming is in the domain of

Unable to see file in Windows Explorer while it is visible in Android file browser

青春壹個敷衍的年華 提交于 2019-12-08 15:00:53
问题 Through my Android program I wrote a file like this: String file = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Files/hello.txt"; BufferedWriter writer = new BufferedWriter(new FileWriter(file)); writer.write(str+"\n"); \\yeah string has a value there writer.close(); Now when I go to Android's "Astro" File browser, I can see the file hello.txt in /mnt/sdcard/Files but when I mount the sdcard in Windows, I can only see 4 other files which were there in that folder but not

storing file path using windows explorer browser in python

半城伤御伤魂 提交于 2019-12-08 13:50:40
问题 I have written some encryption code in python that takes raw input message from user and then encrypts and decrypts it using AES. Now i want to enhance the working and i want that i can open the windows explorer from my code and browse to any file on my computer, select it and when i press OK button the path to file is stored in a variable so i can use it for processing. I have search many forums, i have managed to open windows explorer but there is no traditional OK and Cancel button. If

IShellWindows::FindWindowSW returning S_FALSE

梦想与她 提交于 2019-12-08 07:59:30
问题 I am trying to get the IDispatch * of an open explorer window using IShellWindows::FindWindowSW; however, I cannot seem to coax the method to return anything other than S_FALSE. The code I am using is basically: OleInitialize(nullptr); CComPtr<IShellWindows> spWindows; auto hr = spWindows.CoCreateInstance(CLSID_ShellWindows); auto pidl = ILCreateFromPath(L"C:\\temp"); VARIANT vtLoc; vtLoc.vt = VT_VARIANT | VT_BYREF; vtLoc.pbVal = (BYTE *) pidl; CComVariant vtEmpty; long lhwnd; CComPtr

How to host a rooted namespace extension in Windows Explorer

谁都会走 提交于 2019-12-08 05:00:30
问题 There is a method to create a namespace extension rooted in a particular folder. It involves creating folder with a name like: My Custom NSE.{785EE551-DEE1-4F57-A8C9-0EF76F346A29} And Windows Explorer will automatically host the NSE of that clsid at that location. But for the life of me i cannot find the syntax anymore. It used to be on MSDN in the namespace extension documentation, and it listed the 3 ways to get your namespace into Windows Explorer - that this was one of them. What's the