windows-explorer

How can a batch file run a program and set the position and size of the window?

时光毁灭记忆、已成空白 提交于 2019-12-17 04:26:42
问题 I have batch file that sets up the desktop environment for me when I am writing code. The file is named: SetEnv.cmd and it opens 3 other windows: An instance of Windows Explorer that is set to the app server's deploy directory. A second instance of Windows Explorer that is set to the directory where my deployment file is written. A console window to start my application server. Here are the contents of SetEnv.cmd : Explorer /n,c:\develop\jboss-4.2.3.GA\server\default\deploy Explorer /n,c:

Way to represent unknown file size in FTP LIST?

我只是一个虾纸丫 提交于 2019-12-13 17:09:04
问题 I have an FTP server running on a device which generates a synthetic file. i.e. The file is not actually present on the file system. It is generated on the fly whenever it is requested for download. Its size is not known until it is generated. Certain FTP clients (e.g. Windows Explorer) are apparently using the info from the FTP LIST command to determine the expected file size after they download it. When I request the download, Windows Explorer is first trying the FTP SIZE extension (RFC

Error com4j.ComException: 80004005 .\invoke.cpp:51 while getting open windows and selected items

亡梦爱人 提交于 2019-12-13 02:37:40
问题 I need to get all selected files and folders in Windows Explorer. I'm using com4j to access win Shell32 API (thanks to Tom91136, refer this if you need to learn how can you install and initialize com4j) . This code class gets the selected files or folders in Windows Explorer and prints. import java.io.File; import com4j.*; import test.wsh.*; import java.util.*; import java.util.Timer; import javax.swing.*; public class DetectSelection { public static void main(String[] argv) { list(); //there

Is it possible to peform a Windows Explorer search using JavaScript for a HTA?

隐身守侯 提交于 2019-12-13 01:25:41
问题 This is the code that I have been working on that doesn't work. I want it to perform the search and look into a folder called "info" in the same directory. <html> <head> <title>Application Executer</title> <HTA:APPLICATION ID="oMyApp" APPLICATIONNAME="Application Executer" WINDOWSTATE="normal"> <script type="text/javascript" language="javascript"> function RunFile() { WshShell = new ActiveXObject("WScript.Shell"); WshShell.Run("explorer.exe search-ms://query=somethinginapdf", 1, false); } <

start and close instance of explorer.exe

◇◆丶佛笑我妖孽 提交于 2019-12-13 01:10:02
问题 I have a strange behaviour when I try to start explorer.exe from c# like this: ProcessStartInfo info = new ProcessStartInfo("explorer.exe", "E:"); info.WindowStyle = ProcessWindowStyle.Hidden; Process process = new Process(); process.StartInfo = info; process.Start(); Thread.Sleep(2000); bool res = process.CloseMainWindow(); // InvalidOperationException -> already exited process.Close(); process.WaitForExit(5000); The problem is: the exception seems correct, because at this point HasExited

How can I open a Windows Explorer window from Javascript?

可紊 提交于 2019-12-12 16:01:15
问题 I own a local PHP point of Sale, using wampp as my web-server (Win7). What I'm looking for is to find a way to open the Flash Drive E as we normally do by visiting My Computer - > USB Flash E: ... but using Javascript. I have found this code, which works perfectly as needed...But this only works on IE, I'm using Google chrome as my POS browser but what chrome does..Opens up a blank window ! Here is the code : <script> function CallMe() { window.open("file://PCNAME/E$"); } </script> <html>

How to get the process id of Explorer launched from Powershell

巧了我就是萌 提交于 2019-12-12 09:55:43
问题 I started "Explorer.exe" from Powershell and want to get the process id of the explorer window so that I would not mis-operate on other explorer windows. Code: Start-Process "Explorer.exe" -PassThru Result: I can see the process id but it's different with the real process id of the window in UISpy or in task manager. Seems explorer.exe start another process (B) can exit itself and finally we see the process (B). And the process I got is the exited process. Question: How can I get the real

Windows Explorer Shell Extension: create file and enter “rename” mode

孤者浪人 提交于 2019-12-12 09:52:16
问题 For a shell extension (UI is similar to "New/" context menu), I need to create a file, select it and enter "rename" mode, so the user can adjust the default name. Q: How do I enter "rename" mode for a file? 回答1: The correct way to do this is to use IShellView::SelectItem with the SVSI_EDIT flag. 回答2: Have you tried sending "F2" to the window? 来源: https://stackoverflow.com/questions/6258846/windows-explorer-shell-extension-create-file-and-enter-rename-mode

How can i add a button to all windows explorer instances?

久未见 提交于 2019-12-12 01:56:03
问题 I am trying to add a button to one of the existing tool bars in any windows explorer instance. After much research i figured out that BHO (browser helper objects) are the best way to hook to windows explorer. My question is : Is that the correct way to go about it ? In the SetSite of the BHO i get the comObject that is the explorer window. What now ? If i can get the hWnd of the explorer window can i use win API to add my button ? Note i am developing in C# for XP. Thanks. 回答1: 1 In pre-XP

spreadsheet of all files in a directory

核能气质少年 提交于 2019-12-11 20:39:51
问题 We are finalising a legal matter and need to provide a list of all correspondence for the matter. I've got a folder on my computer with ALL of the emails, word docs, pdf's, jpg's etc. and wish to quickly create a spreadsheet listing the file name, type, size, data created. Can this be done with a batch file? If so, how? 回答1: This is a basic version that should get you going. It uses for to collect info about files in a folder (and all subfolders), outputting as csv. You could adjust (or ask