setthesun
When I click to commandline utility windows open a DOS window and I can use the tool.

But after program finishes it hides windows immediatly and I can not see the results.

I don't want to run DOS command promp first and after execute program.
Any idea ?

Also I havce the same serious problem when I use sockscap with commanline utilities.
ShadowRun
1
use bat files to run and type
cmd.exe /k filetorun
2
redirect output
filetorun > output.txt

greetz
KoStIsTR
HAHAHAHA or quickly press the pause/break button wink.gif
aapje
hehe, i had this sometime too, there is no way of closing it.... (if you have the same as i had). I think it is some sort of an error, the close button and minimize wontr work, it is gone out of task manager...
detonator
batch files ?
he wants a command prompt and nothing else tongue.gif
so there are many different methods

press the start button and then execute.
in that field you type cmd and press enter. you command prompt pops up
or just search under start -> programs after an icon which is a black square with c:\ in it

greetz
Killaloop
QUOTE (setthesun @ Mar 24 2004, 07:14 AM)
When I click to commandline utility windows open a DOS window and I can use the tool.

But after program finishes it hides windows immediatly and I can not see the results.

I don't want to run DOS command promp first and after execute program.
Any idea ?

Also I havce the same serious problem when I use sockscap with commanline utilities.

first of all windows will never open a dos window. its only a commandline window. there are big differences to real DOS.
however I hope I understood you right.
your problem is when you run a cmdline tool it starts and when its done it closes itself.
well you cannot do anything against it since this depends on the way the tool is written.
if the code ends with CLOSE or EXIT the window will be gone. if the code end with hold or whatever the window will wait for a key to stroke befor it will close.
I once hat a hack to not close the window but that was years ago while using win95.
however
you will have to run cmd.exe (command prompt thats NO Dos atall) first and start your program within it. Start -> Run -> cmd.exe
there you go
manu
QUOTE
your problem is when you run a cmdline tool it starts and when its done it closes itself.
well you cannot do anything against it since this depends on the way the tool is written.
if the code ends with CLOSE or EXIT the window will be gone. if the code end with hold or whatever the window will wait for a key to stroke befor it will close.


Enough...!! biggrin.gif biggrin.gif

Sethesun, man, why cant u just go to command prompt and run the tool from there?.. (Run-->CMD for win2k,xp..... Run-->COMMAND for Win98)

Manu dry.gif
Killaloop
QUOTE (manu @ Mar 24 2004, 11:39 AM)
QUOTE
your problem is when you run a cmdline tool it starts and when its done it closes itself.
well you cannot do anything against it since this depends on the way the tool is written.
if the code ends with CLOSE or EXIT the window will be gone. if the code end with hold or whatever the window will wait for a key to stroke befor it will close.


Enough...!! biggrin.gif biggrin.gif

Sethesun, man, why cant u just go to command prompt and run the tool from there?.. (Run-->CMD for win2k,xp..... Run-->COMMAND for Win98)

Manu dry.gif

lol manu
I have answered his question anyways...
In my opinion the way to answer a question is to present the solution and to explain why it works the way it works.
only a combination of both will make you learn.
What to do when ... ?
Do this when ... !
is not the way someone will learn anything, next time they will come with a similar question to the one befor just because you haven't explained the reason of the problem presented befor.
This problem I see with every so called TUT on this board (well not all). A tut should teach people to do things and to be able to understand them to make the reader able to work on his own once he has read the tut. Most so called tuts are just guids (even step-by-step guys). only use of them is showing a scriptkid how to hack when and how to do this when ... but when one single problem comes up they don't know nothing to go ahead and will only cost you time asking simple questions.
people here complain about scriptkids but do nothing to help them to improve their skills. do you think it helps them if you present them the answer without any useful info?
thats like learning math
and your teacher tells you 2x3=6, but doesn't explain how to calculate it. thats useless stuff.
I teach people in many topics and they should be able to do that stuff on their own. if this wouldn't work non of them would have a job (or they would call me every 2 minutes "I got a problem")
MsMittens would agree me I guess. well every teacher should, but too many don't care if there students actually know what they do.
setthesun
Oh my god smile.gif

Man I just want to run commandline tool via sockscap, and after execution I want to see the results.

Any realworld solution for this ?

// also sockscap just support .exe files...
Killaloop
QUOTE (setthesun @ Mar 24 2004, 02:52 PM)
Oh my god smile.gif

Man I just want to run commandline tool via sockscap, and after execution I want to see the results.

Any realworld solution for this ?

// also sockscap just support .exe files...

program.exe >>results.txt

your results will be in this file
use this way or start it using cmd.exe

no other way, the reason has been given smile.gif
setthesun
QUOTE
program.exe >>results.txt


This way is not usable for anyone I think. When I execute a script that will output large amount of data etc. I'm using this.

But in this time I just want to don't close command prompt.

Anyway or not ?


QUOTE
no other way, the reason has been given smile.gif

Sorry but am I missed it ?
Killaloop
QUOTE (setthesun @ Mar 24 2004, 04:21 PM)
QUOTE
program.exe >>results.txt


This way is not usable for anyone I think. When I execute a script that will output large amount of data etc. I'm using this.

But in this time I just want to don't close command prompt.

Anyway or not ?


QUOTE
no other way, the reason has been given smile.gif

Sorry but am I missed it ?

thats a joke or?
scroll up a bit there is my first post explaining why windows closes the window

sure there is a way recode the app and stop it from getting closed.
the rest has been said sorry :/
bah
Well,
u could also try a replacement for the command line
http://www.jpsoft.com/

check it out I think it will solve your problem
more over its a lot more versatile than the std cmd line prompt

Take Command from them is your best bet combines the ease of windows
and keeps your command line editor open!
Noyluck
it really isn't that hard you just right click on a cmd window once and go to properties and there you click on one of the 'v's , the one that says close program when finnished and this way it will stay open

hope it helps you
srr for my english
bah
Actually just find _default in C:\WINDOWS Shortcut to MS-DOS Program
or make one. Then in properties go to tab program and unmark the box
close on exit.

read here

http://support.microsoft.com/default.aspx?...&NoWebContent=1

oddly if u select the actual cmd or command prompt and right click as above
poster says this option doesnt show up.
tweakz20
my way- edit the batch file (.BAT, not .EXE) so at the end, it says "Pause" and it makes you press a button before the window closes...
Or if you're confusing counsel programs with batch files...

CODE

@echo off
:: replace file.exe with the name of your app
file.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 %10 %11 %12 %13 %14 %15 %16
:: I tried it, didn't get any errors
:: of course, same directory as program
Killaloop
that option 'don't close window' worked fine on win95/98 never worked in windows 2000/XP for me. it will just close as befor and also windows doesn't safe the settings. there must be a regkey somewhere, would be useful. but microsoft screwed up that option after win98 at least for me.

and tweakz20, to some reason he cannot use a bat file (dont ask me why ^^).
setthesun
"don't close" option is working fine when using directly command.com, cmd.exe etc. in Win2K3

4NT prog is really great but it's the same as running cmd.exe and executing prog.

QUOTE
reason he cannot use a bat file (dont ask me why ^^).

I think you have some serious problems biggrin.gif

I'm using sockscap and it simply doesn't allow you to run a .bat file. Can you understand ?
ShadowRun
so simply use bat2exe tongue.gif

problem solved

greetz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.