windows-xp

Capture output command CMD

女生的网名这么多〃 提交于 2019-12-27 12:07:08
问题 Platform Windows XP When writing a command file (.bat) how can i "catch" the output from a command into a variable ? I want to do something like this SET CR='dir /tw /-c b.bat | findstr /B "[0-9]"' But this do not work Regards Stefan PS No, I can not dowload grep, cygwin or any other software, it have to be the CMD DS 回答1: You can use FOR /F and go through some loops inside a batch file to capture the output: @echo off setlocal enabledelayedexpansion set var= for /f "tokens=* delims=" %%i in

OK Button crashes in wxPython

做~自己de王妃 提交于 2019-12-25 18:23:18
问题 I'm working on XP and using WX python As GUI library. Recently I look a lot of problems, for example If I Use a @MikeDriscoll 's example the code at the second print the python interpreter crashes, and I don't know why and how track this error (more important)... import wx ######################################################################## class SampleDialog(wx.Dialog): """""" #---------------------------------------------------------------------- def __init__(self, parent): ""

npm -version displays nothing

谁说胖子不能爱 提交于 2019-12-25 16:26:06
问题 I am new to NodeJS and I just downloaded and installed nodeJS in my windows XP machine. However, after installing whatever npm command I have given, it displays nothing. It just displays the command prompt. See below the response in command prompt. Your environment has been set up for using Node.js and npm. C:\Documents and Settings\User>npm -version C:\Documents and Settings\User> Being new to nodejs I am not sure how to troubleshoot this issue. Can any one help me with this issue? Thanks,

WiX 3.8 Burn failed to elevate package installer

三世轮回 提交于 2019-12-25 12:46:07
问题 I am making a package installer and am followin the KISS principle. No bundle made in WiX 3.6-3.8 works on Windows XP (but works as expected in Windows 7). The cause is elevation error 0x800705b4. [14DC:15A8][2014-02-12T11:54:46]e000: Error 0x800705b4: Failed to wait for child to connect to pipe. [14DC:15A8][2014-02-12T11:54:46]e000: Error 0x800705b4: Failed to connect to elevated child process. [14DC:15A8][2014-02-12T11:54:46]e000: Error 0x800705b4: Failed to actually elevate. [14DC:15A8]

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

巧了我就是萌 提交于 2019-12-25 11:55:09
问题 How can i get all the shared folders in Windows XP in my local system using java. Thanks 回答1: net share Try executing this command in windows machine. Here is sample how to execute commands from java code 回答2: try { String line = null; String[] commands = new String[] { "cmd", "/C", "net share" }; Process child = Runtime.getRuntime().exec(commands); InputStream ins = child.getInputStream(); BufferedReader buffReader = new BufferedReader( new InputStreamReader(ins)); while (!(line = buffReader

C# get network connection status and speed in XP

家住魔仙堡 提交于 2019-12-25 08:40:01
问题 how can I get the connection statues and speed in windows XP? 回答1: This should tell you if a network is available. bool IsAvailable = System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable(); Gets the speed of the network long NetworkSpeed = System.Net.NetworkInformation.NetworkInterface.Speed; See here for other things you can use: http://msdn.microsoft.com/en-us/library/system.net.networkinformation.networkinterface(v=VS.100).aspx 来源: https://stackoverflow.com/questions

Problem migrating ConnectNamedPipe() from XP to Win 7

▼魔方 西西 提交于 2019-12-25 08:38:04
问题 We developed an XP application that uses ConnectNamedPipe() in blocking mode. When testing on Win 7, the application behaves as if it is unblocked: ConnectNamedPipe() returns before its VBS client connects. An exception is raised ("Waiting for a process to open the other end of pipe") when calling StreamReader.ReadLine(). When running with the debugger, this does not occur even in Win 7! These are the functions that we are using: [ DllImport("kernel32.dll", SetLastError = true)] public static

SQLServerCE SDF file on Windows 7

北战南征 提交于 2019-12-25 08:04:08
问题 I've have an application on Windows XP that takes an sdf file (SQLServerCE3.0) from a mobile device (Windows Mobile 5.0) import and delete some data and then put it back to the device. It has allways worked correctly. Now, when i do it on Windows 7 x64 the sdf file does some strange behaviour on the device when it goes back. When i do a join with strings, example: SELECT EMPRESA FROM EMPRESES E INNER JOIN VENDORS V ON V.EMPRESA_GUID = E.GUID where V.GUID='{XXX-XXX}' It doesn't return anything

How to compile program that will launch an exe as administrator [duplicate]

不羁的心 提交于 2019-12-25 07:47:50
问题 This question already has answers here : Closed 9 years ago . Possible Duplicate: Elevating process privilege programatically? I'd like to build a console application in .NET that simply runs another program with elevated rights. That way I can point it to, say, an install exe for Flash, send a shortcut to the user pointing to my 'runasadmin' exe, and the user can update Flash. The credentials and the file name to run will be hidden from the user (within the compiled exe) Is this secure, of