windows-xp

Setting java in Windows

All, I have just reinstalled Java on my machine because I found I had 2 versions of Java !! Anyways, I have set up the environmental variables PATH and CLASSPATH to C:\Program Files\Java\jdk1.6.0_21\bin . I have written a simple Java file in C:\Temp folder package myPackage; public class myClass { public static void main(String[] a...

How can I handle a dialog box raised by a program I start from Perl?

I have a Perl script that calls another application I don't have control over. I use the system() to call this application. On occasion, this application generates an unhandled exception and puts up an exception dialog box that needs to be attended to. Since this is an unattended Perl script, I would like to detect this situation and han...

NTFS Performance under XP Pro SP3, recommendations for high amount of files?

I was wondering if there are any recommendations or features that one may remove/disable of NTFS under Windows XP Pro SP3 (32bits) - to gain performance while using it as an archive unit for millions of files? The only requirements for the archiving structure are filenames and their data, while having the ability to store millions of fi...

Translating paths in PHP from (*nix) server to (winxp) dev machine

I'm working on a PHP project that has a lot of hard coded paths in it. I'm not the main developer, just working on a small part of the project. I'd like to be able to test my changes locally before committing them, but my directory structure is completely different. For example, there's a lot of this in the code: require_once("/home/cl...

How to use Curl from command line to post GET method with cookies

`I have this requests that i have to send with windows xp GET https://website.com/index.aspx?typeoflink=**[HERE-VARIABLE-FROM-FILE]**&min=1 HTTP/1.1 Accept: */* Referer: https://website.com/index.aspx?chknumbertypeoflink&min=1 Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Wi...

How to write a script (for Windows XP) to run a python program?

Basically, I'd like to run a script (versus typing python program.py) or even have a shortcut that I could click on and start the program. Any ideas? ...

Visual Studio unable to load necessary dll's to run project

I am trying to run a project in Visual Studio 2010, and for some reason it seems like I can't... the command-line window is closed instantly and the debug info is the following: 'exercise01.exe': Loaded 'E:\e\work spaces\C++ projects\exercise01\Debug\exercise01.exe', Symbols loaded. 'exercise01.exe': Loaded 'C:\WINDOWS\system32\ntdll.dl...

How to get all the shared folders in Windows XP using Java

Hi Guys How can i get all the shared folders in Windows XP in my local system using java. Thanks ...

How to search the correct directory for imports

I am trying to test some code. The main script requires imports from a number of subdirectories. The structure of the scripts is like this (I edited it to make it clear that dir1 and 2 are subdirectories of build): build ascript.py dir1 script2.py dir2 script3.py subdir1 script4.py script5.py subdir2 ...

wxWidgets compiling with an error

I am trying to compile and create wxWidget apps but when its just about done I have a virtual memory runout and there is an error in the wxWidgets code I have tried it several times with 2.8.10 AND 2.8.11, no luck, I am using codeblocks 10.5 and mingw I think version 5.02 but I am not positive whenever I start a wxwidgets app in codebloc...

Strategy for Stopping Java Processes in Windows XP

I am working with an application that consists of 10 or so Java processes that communicate through JINI, JMS, Sockets, and an HSQL db running on Windows XP. It seems that each part of the application has its own .bat file. For instance there is: ActiveMQ Broker HSQL Server JINICore Services RMI Registry 5 Java mains that run 1 Java G...

Coloured output with git in cmd

Is there a way to get coloured output with git in cmd? If yes, how? Platform: XP SP3. ...

boost::thread assertion error

I'm trying to create a simple test program using boost::thread, but I get a runtime assertion error. Here is the code: #include <iostream> #include <boost/thread.hpp> void hello (void) { std::cout << "Hello, world!" << std::endl; } int main (void) { boost::thread t(&hello); t.join(); // Fails even without this line } T...

Need help with "at" command on Windows XP - Why the job is not executed ?

On Windows XP I'm trying to add a job like this: at 17:07 /every:s dir I expect dir to be executed every Saturday at 17:07, however I don't see anything happens in the command line window. Here is the log: D:\temp>at 17:07 /every:s dir Added a new job with job ID = 1 D:\temp>time/t 05:06 PM D:\temp>date/t Sat 10/02/2010 D:\temp>...

Why "schtasks" does not run my job ?

I scheduled a task on Windows-XP using schtasks utility, but the task does not run. Here is what I see in the SchedLgU.Txt log file: "MySQL Automatic Backup.job" (WampServer) 10/2/2010 6:36:43 PM ** ERROR ** Unable to start task. The specific error is: 0x800700c1: (Unable to find an error message) Try using the Task page Browse button t...

How to remove double quotes from a variable in a batch file ?

var may be double quoted: set var="Very long text" or without quotes: set var=Some_Text I would like to get the unquoted text, i.e. Very long text in the first case and Some_Text in the second one. How could I remove the double quotes, if exist ? ...

How to execute a scheduled task with "schtasks" without opening a new command line window ?

I have a batch file that creates a scheduled task using schtasks like this: schtasks /create /tn my_task_name /tr "...\my_path\my_task.bat" /sc daily /st 10:00:00 /s \\my_computer_name /u my_username /p my_password It works OK ...

NAnt <exec> Task Always Returns 0 for Batch Files on Windows XP

I'm encountering an issue with the <exec> task on batch files in my NAnt project files. When running on Windows XP SP 3 (but not Windows Vista or Windows Server 2008) and using NAnt 0.85 or 0.91alpha2, the <exec> task will always succeed (returning an error code of 0) regardless of what the executed script returned. As an example, I wr...

Require an old version of silverlight

We're using a combination of Silverlight 4, .net 4 and VS2010 for several internal projects. When building a project, we're not manually specifying the build of silverlight that we require anywhere other than in the page that gets auto-generated. We're having problems with the clients requiring the absolute latest build of silverlight t...

Mercurial .hgrc file

By default on Windows XP Mercurial stores the .hgrc file in (well, in my case) c:\Documents and Settings\srooks\. How can I change that location, and have it look for .hgrc file in, for example, c:\Configuration_Files ? Can it be done at all? ...