here's an example. it prints the name of your computer. put any .exe into "cmd" but things like dir and set don't seem to work:
try{
String cmd = "hostname";
Process pr = Runtime.getRuntime().exec(cmd);
InputStream is = pr.getInputStream()...
I need to find the name of a machine programatically, but on hp-ux, there is no reference to it. Is there some secret hp method to get a machine to cough up it's name that doesn't use env?
Thanks for the reply.
Hmm. The thing is that once I execute the zipped.exe file, it asks for the password. So if the first line of the batch file is: zipped.exe, it will never get to the second line. It will just sit and wait for the password at line 1.
Thanks for your reply.
The execution of the self-extracting zip file is not the problem. The password cannot be fed to the file. I haven't been able to find an argument for it (ie. selfExtractFile.zip -pw=password) and I don't know how to communicate to the process once it's started.
Hi all,
I'm writing an automation that includes unzipping a self-excecutable zip file which has password protection. I need to start the decompression and then feed in the password.
I need to use java or perl to do this. The only things I've found so far use tcl/tk or assembler (for Pet's...
Hi all,
I'm writing an automation that includes unzipping a self-excecutable zip file which has password protection. I need to start the decompression and then feed in the password.
I need to use java or perl to do this. The only things I've found so far use tcl/tk or assembler (for Pet's...
I am compiling for win 95 but I'm having trouble using WinMain. Where do I put it? How is it implemented? So far, it's been quietly ignored by the compiler.<br>
<br>
D
Thanks for the suggestion. I decided to use a small screensaver app to run my app, or even run the whole thing as a screensaver. Not secure but security isn't important for this thingy.<br>
<br>
thanks again<br>
D
This little box may make this hard to read but the code works. I used a form instead of cout...<br>
Let me know how it goes.<br>
<br>
D<br>
<br>
{<br>
int s;<br>
s=StrToInt(Form1->txtScore->Text);<br>
int a,b,c;<br>
a= s;<br>
b= s; //should be b=s...
I'm running some login forms that need to restart in case a user walks away from a terminal. Any ideas about detecting inactivity when the application is minimized or hidden?<br>
<br>
I'm flummoxed.<br>
<br>
D
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.