Single instance batch file?
:: dostuff.bat @echo off :: insert long-running process call here : End What can I add to this batch file to make it terminate if it's already running in another process when it's executed? ...
:: dostuff.bat @echo off :: insert long-running process call here : End What can I add to this batch file to make it terminate if it's already running in another process when it's executed? ...
Hey guys, My situation is like this: I got a windows computer and a Linux computer , and an Eclipse project I'd like to sync between them. What is the best way to do this ? Thanks in advance ...
There is web page that displayed file structure - folders and files. How to emulate Windows Explorer "List" view on this web page? The order of items should be following: from top to bottom and from left to right. I can arrange items from left to right only, by it doesn't confirm to Windows "List" view: Item_1 Item_2 Item_3 It...
I have created an application for which can be invoked through context menu by deriving from IContextMenu and IShellExtInit. I register the DLL and when I right click the application gets invoked. But, the problem is till my application gets over, I cannot access any other file in that explorer. Explorer is effectively blocked till my a...
I have a 32-bit perl installer. Using this I need to be able to install and uninstall both 32- and 64-bit applications. Installing 32- and 64-bit is fine. Uninstalling 32-bit is also ok. However, I have a problem while uninstalling 64-bit applications. The application just knows the name of the application as seen in Add Remove progra...
I have been using the following command to get the file date, however the fileDate variable has been returning blank value ever since we moved to a different server (windows 2003) FOR /f %%a in ('dir myfile.txt^|find /i " myfile.txt"') DO SET fileDate=%%a Is there any other more reliable way to get the file date? ...
HWND wndHandle; //global variable // code snipped WNDCLASSEX wcex; // code snipped wcex.lpszClassName = (LPCWSTR) "MyTitleName"; // code snipped wndHandle = CreateWindow( (LPCWSTR)"MyTitleName", //the window class to use (LPCWSTR)"MyTitleName", //the title bar text ... ... I am following a tutoria...
I use GetForegroundWindow to get the foreground window handle but if there is no window, then it returns the HWND to the desktop. How do I know if the HWND is the desktop? ...
Hi, I'm trying to write a macro and I have the 2nd half done (tile windows showing specific sheets) but not sure how to do the first half. There are some sheets that when displayed I would like to look at two other sheets at the same time (multiple window tiling). This is easy to set up manually, but I'd like it to happen automaticall...
Is it possible to do if(HWND1 == HWND2) or is there a function that I need to use to see if two hwnd point to the same window? ...
Hi programmers, I want read line by line a Unicode (UTF-8) text file created by Notepad, i don't want display the Unicode string in the screen, i want just read and compare the strings!. This code read ANSI file line by line, and compare the strings What i want Read test_ansi.txt line by line if the line = "b" print "YES!" else pri...
I've created a batch which automatically uploads some files to FTP server, if they're modified. And modification is detected by changed file's modification time and size. But if the modification is made within the same minute, and file size did not change, modification stays undetected, and file is not uploaded. Is there a way to get exa...
Though Windows is case insensitive, it does preserve case in filenames. In Python, is there any way to get a filename with case as it is stored on the file system? E.g., in a Python program I have filename = "texas.txt", but want to know that it's actually stored "TEXAS.txt" on the file system, even if this is inconsequential for vario...
im using keybd_event(); and i want use SendMessage(); to send keystroke to notepad, can this be done? ...
I am looking for a way to pass mouse events through a winform without using Form.TransparencyKey. If there is no simple way to do this, is there a way to send a mouse event to a given window handle using Win32 API? Edit By pass through the winform I do not mean to a parent window, I mean to other applications that reside behind mine. ...
Two applications share memory by MMF. A create MMF (about 1GB), B open that MMF file by name. When I see Windows Task Manager, A has 1GB memory. But, after several closing and launching B app again, (or after 1 days later? I'm not sure how to reproduce) A's memory in Windows Task Manager is below 1K bytes. My guess is, maybe because A a...
When you edit a datetime column via its datepickup,a window pops up instead of a new tab. How to do it? I tried window.open(..) but it just opens a new tab. ...
I am looking for book titles or other resources for showing me how to get started and become advanced at windows based software with 3d graphics. ...
what is the difference between a.bat, a.com and a.exe extensions? ...
I would like to be able to run a playthrough of a game on a given machine for testing and benchmarking purposes. I have no control over the game itself, so I can't modify it in any way, it would have to be a normal unmodified off-the-shelf game that anybody could pick up for a local store. What I'd ideally like to be able to do is reco...