Greetings, dear Experts!
I want to check the existense of parameter (or argument) sting at all in my batch script:
if "%*"=="" findstr "^::" "%~f0"&goto :eof
This works fine if none of parameters is enclosed in double quotes. For example:
test.bat par1 par2 ... --- works
but
test.bat "par 1" par2 ... --- fails
My question are:
...
Dear Experts,
I'm writing a script that should process a contents of a file, but should be file-independent.
The second step would be using the script few times in pipe as follows:
type input.txt|script.bat ...|script.bat ...|script.bat ... > output.txt
Is it possible to use either of the following syntax:
type input.txt|script.bat
...
Hello, Is there anyone who use testcase for the windows async socket?
right now, I make a testcase as following:
TEST(TestAsync) {
Model* model = Model.getInstance();
Account* account = model->getAccount();
account->setId("[email protected]");
account->setPassword("password!");
MyAsyncSocket* socket = new MyAsyncSocke...
I have a question about determining the type (User or Group) of a account name.
For example, I have two strings, say "Adventure-works\david" and "Adventure-works\admins",
the first represents a user named david, and the second represents an AD group.
My question is how can I determin the type(User or AD group) of these account? Are ther...
I'm trying to use the StackWalk64 function in DbgHelp.dll to get a stack trace when I receive a SIGSEGV, but the stack trace obtained is unrelated to the actual site of the access violation:
[0] sigsegv_handler() e:\hudson\jobs\ide-nightly-trunk\workspace\ide-nightly-trunk\core\ide\cspyserver\src\stackwalker\cssstackwalker.cpp:31
[1] Xc...
Suppose I run an application, after some time this app will get closed by user. Is it possible to find out when the program exits? Can I get it's process id when I run that application?
...
-- All of the revised code still refuses to run well, please help --
When I compile my code in Windows, I get memory errors. However on the Mac, where I initially coded this code, it works fine. I need to get this working on Windows.
It's something to do with the way I handle my char strings using strcpy that the Mac seems to be fine w...
I am creating a desktop app that will sit on a PC and occasionally check a web server for updates to various settings.
The program will be using these settings frequently so I would like cache the settings in a file on the PC so it doesn't have to hit the server constantly. There are a lot of settings. I was thinking about storing them ...
I´m writing two litle c++ apps that must communicate. First one will be a service which, every once in a while, must alert the user for something. Since a service cannot create windows I designed the app to be two separate executables.
The service will use a notifier to communicate.
The service needs only to send text messages to the n...
I'm trying to write code that can capture raw native 802.11 packets to essentially write a packet sniffer. I'm using Vista with 802.11 device which uses an NDIS 6.0 native 802.11 driver.
Perhaps I am going about this the wrong way (and please let me know if there are better alternatives!) I'm trying to do this all through the Windows ...
Why does the following print a blank line instead of 'Hello QProcess'?
import sys
from PyQt4 import QtGui, QtCore
proc = QtCore.QProcess()
proc.start("echo 'Hello QProcess'")
proc.waitForFinished()
result = proc.readAll()
print result
proc.close()
I'm on Windows XP, btw.
...
Hi, I need to make a message concating various parts. So I used ostringstream. Now I have a std::string or a const * char to send by mailslot.
I have tryed many ways to do it but every time I receive wrong messages.
I would like to know a solution to send messages by mailslot and receive it and show it by console.
My code to generate an...
I have assembly that targets .NET 2.0 to be compatible with a broad range of applications. When used with a desktop application (either winforms or WPF) I want to hook certain hotkeys and popup modeless dialog windows. The tricky bit is finding a solution that can be implemented under .NET 2.0 that is compatible with WPF.
For winforms...
I am new to opengl and using C#,opentk for development. My Application is very light weight (just 2d graphics) and i am planning to use software rendering when hardware rendering is not available.
How do i make sure software rendering works on all computers ? (when hardware rendering is not available.)
Should i distribute Software re...
Hi,
Time ago I created an application which has some buttons in the form. Now the customer wants me to modify the existing application so he can add custom buttons.
Now there are some existing buttons (ex. button1, button2, button3...) and I have to create a button "Add new..." so the user can add a new button below the existing button...
What are the options for syncing an iPhone App's data with that of a Desktop application on either Mac OS X or Windows.
So far I have come up with:
iTunes plugin (Windows and Mac OS X)
iSync (Mac OS X only)
The "Cloud"
...
Hello all,
I have just tried to execute this:
function kill_hr(){
exec("taskkill /IM uper.exe", $output = array(), $return);
print_r($output);
echo "<br />".$return;
}
However, the output is this and its not very useful:
Array ( ) 1
When the process doesn't exist its this:
Array ( ) 128
I am trying to work...
When I go to the MS web page describing the latest VB Runtime Files list it directs me to what looks like the right download for VBRun60sp6.exe but when I actually download it it's VB6.0-KB290887-X86.exe which is just the OleAut32.dll update for VB6.
I downloaded the VB6 IDE SP6 update but it installs directly to the Dev machine and I...
I have some old vb6 code that checks to see if the Windows directory is writeable by WRITING to it then reading a value back.
But... we have a virus scanner that's viewing that as suspicious behavior so I want to check it without touching it.
Any Windows API calls for that? (Ideally for Win 98 and above)
...
People have reported BSOD on windows 7 (64bit) http://dokan-dev.net/en/2009/04/06/the-next-release-of-dokan-library/. For some reason unknown to me, my explorer on winxp sp3 (32bit) gets shaky and at time freezes if I do lots of browsing via doken SSHFS drive. Have you faced any issues lately with sshfs doken driver? Just wanted to get y...