AndyD
(Fresh Scripter)
2004-02-19 01:27 PM
Open a 2nd cmd prompt

I have searched but cannot find so must ask.....

I use wkix32.exe to launch my script so as not to get a command prompt popping up and then disappearing.

BUT during my script I want to pop up a new comand prompt with a "ping x.x.x.x -t" command running....but I cannot fathom out how to get one to open.

You guys rock....please tell me it can be done


Richard H.Administrator
(KiX Supporter)
2004-02-19 01:49 PM
Re: Open a 2nd cmd prompt

Try using "start" in your shell command.

Also, if you are not already, use "%COMSPEC%" to start the command under a command interpreter.


AndyD
(Fresh Scripter)
2004-02-19 02:59 PM
Re: Open a 2nd cmd prompt

mmm....this appears to be the only way I can do it....

Run '%COMSPEC% /e:1024 /c pingout.bat ' + $routerip

and pingout.bat is

start /MAX ping -t %1


Oh well....works for me

Thnx 4 ur help.

PS. The bit I had missed out in all my testing was the /e:1024 to get some extra environment space ! :rolleyes:
Although according to XP (cmd /?) the /E flag is either ON or OFF for command extensions !?


Kdyer
(KiX Supporter)
2004-02-19 03:09 PM
Re: Open a 2nd cmd prompt

Andy,

Here is one that I put together - Re- Server available script

If memory serves, Richard also has a monitoring script too.

Kent


Richard H.Administrator
(KiX Supporter)
2004-02-19 03:20 PM
Re: Open a 2nd cmd prompt

Yup, a console server monitor

Unfortunately the new BB software has screwed up the code quite badly (it's truncated), but you can see the screenshots.

If you want the code & sample ini file let me know and I'll email them.


NTDOCAdministrator
(KiX Master)
2004-02-19 05:51 PM
Re: Open a 2nd cmd prompt

You could also build something with KiXforms.

http://www.kixforms.com


LonkeroAdministrator
(KiX Master Guru)
2004-02-19 11:57 PM
Re: Open a 2nd cmd prompt

better yet:
http://www.kixforms.org


AndyD
(Fresh Scripter)
2004-02-20 12:50 AM
Re: Open a 2nd cmd prompt

Ooh I have a monsta script....including KixForms. It has an ini file as a database of nearly 100 servers we monitor, it pulls logs from them and produces a report of what update state each server is in etc.
Includes an editor for the ini file....but my style of scripting is seriously rough and ready....no prizes for style

Thnx for all the hints and pointers.


Kdyer
(KiX Supporter)
2004-02-20 12:53 AM
Re: Open a 2nd cmd prompt

Richard,

You should have mail from my work acct.

Kent


AndyD
(Fresh Scripter)
2004-02-20 10:03 AM
Re: Open a 2nd cmd prompt

Quote:

Richard,

You should have mail from my work acct.

Kent




Me ?

The only mail I had for last 3 days was re. viagra, improving my manhood, and satisfying my partner !

Which was from you ?


LonkeroAdministrator
(KiX Master Guru)
2004-02-20 10:58 AM
Re: Open a 2nd cmd prompt

you have richard as your middle name or what did I miss?

AndyD
(Fresh Scripter)
2004-02-20 05:34 PM
Re: Open a 2nd cmd prompt

Quote:

you have richard as your middle name or what did I miss?




Do moderators not have access to private messages ?
or perhaps your email doesn't let you know when one arrives ?


Sealeopard
(KiX Master)
2004-02-20 06:53 PM
Re: Open a 2nd cmd prompt

Quote:

Do moderators not have access to private messages ?



Yes, they do.
Quote:

or perhaps your email doesn't let you know when one arrives ?



Yes, it doesn.

However it's nice to get a reminder that there's a useful message in the inbox among the hundreds of more or less useful messages that one receives durign a normal day (not counting SPAM).

Anyway, why do you care anyway, as the notice was not directed towards you?


AndyD
(Fresh Scripter)
2004-02-21 11:28 AM
Re: Open a 2nd cmd prompt

Quote:

Anyway, why do you care anyway, as the notice was not directed towards you?




Oooh, excuse me almight moderator ! :worship:
I didn't realise you used threads to leave each other little notes, I must remember to try and filter them out when reading entries that are "ON TOPIC" !


LonkeroAdministrator
(KiX Master Guru)
2004-02-21 02:29 PM
Re: Open a 2nd cmd prompt

mortal user, ja.
you should filter.

you see, the mods do have their own mind and those minds are not similar and they tend to do weird stuff.
user can do nothing but accept that or not accept but then he might face the wrath

so...
what was the topic anyways?
oh and the second cmd-prompt...
you could try other than kixtart run or shell.
I've complained about this stuff earlier but as wkix32.exe users are still pretty rare, my voice doesn't get heard on this subject.
you could try with shell-execute (as used in http://www.gwspikval.com/jooel/UDF/udf/83022.htm )


Les
(KiX Master)
2004-02-21 03:06 PM
Re: Open a 2nd cmd prompt

This is Andy's topic and he has every right to complain when Kent hijaaks it for not-so-private messaging. It has nothing to do with being a moderator except that mods should lead by example.

The board's private messaging works very well, even if email notification is disabled. There is a flashing envelope that appears in the board's nav menu.


LonkeroAdministrator
(KiX Master Guru)
2004-02-21 04:54 PM
Re: Open a 2nd cmd prompt

see andy?
nice example


AndyD
(Fresh Scripter)
2004-02-21 07:41 PM
Re: Open a 2nd cmd prompt

@ Les: Thanks for understanding my grievance & hopefully guiding people away from doing it again.

@ Lonkero: Thanks for the pointers, all is OK now


Kdyer
(KiX Supporter)
2004-02-22 03:04 AM
Re: Open a 2nd cmd prompt

Sheesh..

I am confused.. Wait a sec.. Richard offered to give a copy of the monitor to people that wrote in e-mail in the open forum. If it is a transgression to confirm that I ask him for a copy, then I am sorry. I guess I will keep these things to myself. Or, rather in the pm.

Kent


AndyD
(Fresh Scripter)
2004-02-22 09:53 AM
Re: Open a 2nd cmd prompt

Quote:

Sheesh..

I am confused.. Wait a sec.. Richard offered to give a copy of the monitor to people that wrote in e-mail in the open forum. If it is a transgression to confirm that I ask him for a copy, then I am sorry. I guess I will keep these things to myself. Or, rather in the pm.

Kent





What monitor ? Can we all have one ?

Hope you got it......now move along, nothing to see here....


Sealeopard
(KiX Master)
2004-02-22 07:25 PM
Re: Open a 2nd cmd prompt

I guess, you're not reading the posts carefully enough.

Richard H. explicitly stated
Quote:


If you want the code & sample ini file let me know and I'll email them





So, yes, it's okay to post in the thread that there's a request on his way. A lot of people are checking the forums outside of work, so they might not have instant access to their work email.