I'm reading a file and I either read a row of data (1600 sequential reads of 17 bytes) or a column of data (1600 reads of 17 bytes separated by 1600*17=27,200 bytes). The file is either on a local drive or a remote drive. I do the reads 10 times so I expect in each case to read in 272,000 bytes of data.
On the local drive, I see what ...
Ultimately I want to travel through a folder's files and subdirectories and write something to all files i find that have a certain extension(.wav in my case). when looping how do i tell if the item I am at is a directory?
...
I'm going to make a desktop application that will run in the background, meaning no visible window, and I'd like an option called: "Upload Text" to appear when a user right clicks a file.
Can someone point me in the right direction? I also have to make sure that if someone wants to uninstall the program at any point, that the shell modi...
What is the best programming language for writing MIDI-interactive musical application that would be run on MAC and on Windows?
...
Hi all:
I have a strange problem which I would like to hear from all the experienced developers out there...
Currently I have a MsBuild file with a target that executes a set of unit tests using a Java jar file. The target looks like this:
<Target Name="RunTests" >
<MSBuild Projects="MyProject.csproj" />
<Exec ContinueOnError="fa...
I have a program that I would like to be launched whenever a url with the protocol "sample://" is clicked/launched. For example, a user clicks on a link in IE/Firefox with the following href: sample://test.txt. My program should then be invoked with the url as an argument. I would like a solution for Windows and linux if possible, though...
How can I catch when somebody kills my application (java, but it is not important) by taskmanager or by taskkill console command?
I understand that I cannot catch this IN my application but maybe I can do this by some hook with OS (windows of course). Maybe easyhook library (http://www.codeplex.com/easyhook) can help me, but I can not ...
This is a similar question to the one I ask here. I am running on Windows XP.
I am trying to get for loop to work on Windows. Following the suggestion that I have to make sure that the command are valid cmd command, I constructed a valid for loop batch command:
@echo off
FOR /F "tokens=4 delims=," %%G IN ("deposit,$4500,123.4,12-AUG-09...
Some time ago I asked about how to pop up the Windows context (right-click) menu for a certain file in Delphi. However, even if everything works (almost) OK, the 'Send to...' and 'Open with...' submenus don't have any items, even if when I right-click in Explorer on the same file name they work OK. (For example, 'Send to...' has 'Desktop...
There are some Win32 objects which according to the SDK can be "inherited" to the child-processes created by the given process. (Events, mutexes, pipes, ...)
What does that actually mean?
Let's say I have a named event object, created with CreateEvent, one time with bInheritHandle == true, and another time == false.
Now I start a chil...
Hi
I was wondering if anyone knows about good tutorials or articles describing methods of creating an HTML GUI for an application using QTWebKit for a windows desktop application.
I am mainly concerned about communicating messages, events and information between lets say a DLL(written in C++ for example) and the GUI (QtWebKit).
need g...
If I want to transfer a binary file "binary.bin" (located in the same directory as NetCat) to IP address 127.0.0.1 port 1200 using TCP, how do I specify this using NetCat for windows?
...
Used SSH Tunnel to route the traffic addressed to server1:port1 to server2:port2.
Now,the problem is that i want to redirect all TCP/IP packets from desktop addressed to server1:port1 to server2:port2.
using "hosts" file on windows, i mapped server1 ip as ipaddress of server2. [local DNS mapping]
http://server2:port2 //gives the desir...
Hi,
On our server (win 2008 r2) we enabled the setting "force network authentication" to enforce that the client must support the NLA, because the port 3389 is directly reachable from the internet. But on Windows XP SP3 the NLA seems to be disabled per default. As I wrote an installer with WIX to distribute the rdp files, I'd also like ...
I have a PowerShell script that connects to a web site, and parses its returned data (It's about importing a previously uploaded SQL file into the web site's data base). The PowerShell script uses wget, something I may replace by a native function later.
The import process is embedded in a script that is executed by a 3rd party program ...
How do I restore the stack trace function name instead of <UNKNOWN>?
Event Type: Error
Event Source: abcd
Event Category: None
Event ID: 16
Date: 1/3/2010
Time: 10:24:10 PM
User: N/A
Computer: CMS01
Description:
Server.exe caused a in module at 2CA001B:77E4BEF7
Buil...
I have two questions.
1) How do I know if a 'user account' is exists on my windows OS (vista)? I need this information of a stand alone machine. I mean, the machine doesn't joined to any domain.
2) also I want to know whether a user is a part of a group? for eg. is a user 'admin' part of administrator group or not?
could anyone pls h...
In Windows, is there a way to find out when an executable was last executed?
It seems unlikely that something like this would be saved, but I'm open for other suggestions.
It would be enough to know if it was executed "recently", for example since the computer was started, the last hour etc.
I'm open for hackish ideas, like checking...
For example, you have a rename command in a batch file, and you want to execute that file on the current directory and all sub-directories.
...
I am using PowerShell to run a script that executes wget to fetch a web page (a simple database import script) and analyzes its output (Error message or "OK").
I am using code from the answer to this previous question of mine.
$a = c:\path_to_wget\wget.exe --quiet -O - "http://www.example.com/import_db"
$rc = $a.CompareTo("OK")
exit $r...