i have the following case :-
i design :-
1- file.bat on windows 2003
2- file2.sh on unix-aix
file2.bash call file.bat and file.bat receve path from file2.bash and file.bash return a value to file2.bat .... when i execute this from my servers all thing good
but when i call this from my website (PHP) the following error appear :-
ER...
I have a situation where I need to start a WPF application and have it run using a child window created by my C++ application. So the sequence of events would be -
Start C++ application
C++ application creates a window that it wants WPF app to run in.
Launch WPF using CreateProcess function. Included in create process would be the ha...
Hi all,
I've delopped some Scala code to control the lifecycle of MySQL server. The code runs fine on Windows XP, but fails under Windows 2008 R2 standard with the following exception:
Exception in thread "main" java.io.IOException: Cannot run program "mysql" (in directory ".\bin"): CreateProcess error=2, The system cannot find the fil...
how differently is "dir" command in windows and "ls" command in linux processed by the operating system??
...
I've wrote a small piece of code that reads the current battery charge/discharge on my laptop.
I followed the example code on this MSDN page.
My program updates the information every 100ms (by calling the DeviceIoControl function with IOCTL_BATTERY_QUERY_STATUS as control code) but the read value changes only after 5-10 seconds.
For exa...
This is almost the same as http://stackoverflow.com/questions/101647/how-to-schedule-a-task-to-run-when-shutting-down-windows, except I need to do it programmatically. Also, I need the guarantee that when the script is run, no application can cancel the shutdown anymore.
Is this possible?
Thanks.
Update, with a little context: My comp...
Using WMI (regardless of the actual programming language), it's possible to get the currently logged on user using a query such as Select UserName from Win32_ComputerSystem. All nice and good.
But what if multiple user sessions and/or Terminal Services are involved? Is it possible to list all the currently logged on users on a given sys...
I'm running Rspec 2.0.0rc on Windows 7. I am also running the win32console gem (1.3.0 x86-mingw32).
The colours aren't being displayed - everything is showing up in boring old white/grey.
What am I doing wrong?
Edit: I also tried Rspec 2.0.0. and had the same problem
...
How can I change the "OK" text into "Great!" on all buttons in Windows 7's dialog windows?
...
I think there is no way to enumerate each network interface on my system and their assigned IP using just sockets, is this correct?
I mean, in linux this could be:
eth0: 192.168.1.5
wlan0: 192.168.0.5
lo: 127.0.0.1
I dont care interface names, just the IPs assigned.
I recall to have done this in the past in Windows, using winapi (tho...
Hello,
I have a C/C++ algorithm that I want to create a GUI application for. I would prefer a .exe application that I can pass around to people. I would preferably want to create a dll of my c/c++ algorithm and then bundle it into the Windows GUI application which is basically just a wrapper around the main c/c++ application. How can I ...
I need setup USB devices with encrypted data that a user would be able to access the first time with an initial password, be made to change that password on first access, and be able to change the password later as well. It only needs to run on Windows XP SP 2 and later. It would be nice if it could run without administrator privileges...
I have my site running fine with a simple 'merb' command. I'd like to spawn multiple processes, or threads or whatever, so that a long DB request (or more often, a long PDF building request) doesn't hang everyone else on the server.
I've tried to use "merb -c3", but receive an error saying Daemonized mode is not available.
Any other ...
I've run into a peculiar problem where a hql query is working as expected on Windows but does not on Linux.
Here is the query:
select distinct resource from Resource resource , ResourceOrganization ro
where (resource.active=true) and (resource.published=true) and
((resource.resourcePublic=true) or ((ro.resource.id=resource.id and
r...
Can I use select and poll on the Named pipe handle in windows? It will be great if an example can be given. (I am very new to windows programming)
In case one of process goes down and I am polling on other end, will I get any error message on the other process that the process is down?
...
I heard many people talking about signing exe in windows platforms. I have following questions,
What is signing exe?
Is there any rules i have to follow for signing my application?
What are the advantages i can get when my application got signed?
Is it free?
Thanks,
Santhosh
...
I'm using SQLite3 in a Windows application. I have the source code (so-called SQLite amalgamation).
Sometimes I have to execute heavy queries. That is, I call sqlite3_step on a prepared statement, and it takes a lot of time to complete (due to the heavy I/O load).
I wonder if there's a possibility to abort such a call. I would also be ...
I'm new to Objective C.
I've installed jEdit on windows 7 and the gcc compiler too.
I need to know how to use jEdit to develop Objective C applications on windows
Thank you.
...
I'd like to create a simple search script that runs from the CMD prompt. It needs to asks for user input first e.g. "what to search".
How can I prompt the user for input (in cmd), or open a input dialog (in any standard scripting Windows language).
...
What do I need exactly is to store information like applications first execution date and few settings somewhere on the user machine. The program will be distributed on Windows and Mac OS. This information needs to be shared between the users on same machine... somewhat global settings. On windows I'd probably store this information in r...