Page 1 of 2 12>
Topic Options
#114370 - 2004-02-19 01:27 PM Open a 2nd cmd prompt
AndyD Offline
Fresh Scripter
*

Registered: 2001-11-26
Posts: 17
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
_________________________
AndyD England, UK.

Top
#114371 - 2004-02-19 01:49 PM Re: Open a 2nd cmd prompt
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4945
Loc: Leatherhead, Surrey, UK
Try using "start" in your shell command.

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

Top
#114372 - 2004-02-19 02:59 PM Re: Open a 2nd cmd prompt
AndyD Offline
Fresh Scripter
*

Registered: 2001-11-26
Posts: 17
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 !?
_________________________
AndyD England, UK.

Top
#114373 - 2004-02-19 03:09 PM Re: Open a 2nd cmd prompt
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Andy,

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

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

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#114374 - 2004-02-19 03:20 PM Re: Open a 2nd cmd prompt
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4945
Loc: Leatherhead, Surrey, UK
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.

Top
#114375 - 2004-02-19 05:51 PM Re: Open a 2nd cmd prompt
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11571
Loc: CA
You could also build something with KiXforms.

http://www.kixforms.com

Top
#114376 - 2004-02-19 11:57 PM Re: Open a 2nd cmd prompt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22335
Loc: OK
better yet:
http://www.kixforms.org
_________________________
!

download KiXnet

Top
#114377 - 2004-02-20 12:50 AM Re: Open a 2nd cmd prompt
AndyD Offline
Fresh Scripter
*

Registered: 2001-11-26
Posts: 17
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.
_________________________
AndyD England, UK.

Top
#114378 - 2004-02-20 12:53 AM Re: Open a 2nd cmd prompt
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Richard,

You should have mail from my work acct.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#114379 - 2004-02-20 10:03 AM Re: Open a 2nd cmd prompt
AndyD Offline
Fresh Scripter
*

Registered: 2001-11-26
Posts: 17
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 ?
_________________________
AndyD England, UK.

Top
#114380 - 2004-02-20 10:58 AM Re: Open a 2nd cmd prompt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22335
Loc: OK
you have richard as your middle name or what did I miss?
_________________________
!

download KiXnet

Top
#114381 - 2004-02-20 05:34 PM Re: Open a 2nd cmd prompt
AndyD Offline
Fresh Scripter
*

Registered: 2001-11-26
Posts: 17
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 ?
_________________________
AndyD England, UK.

Top
#114382 - 2004-02-20 06:53 PM Re: Open a 2nd cmd prompt
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
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?
_________________________
There are two types of vessels, submarines and targets.

Top
#114383 - 2004-02-21 11:28 AM Re: Open a 2nd cmd prompt
AndyD Offline
Fresh Scripter
*

Registered: 2001-11-26
Posts: 17
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" !
_________________________
AndyD England, UK.

Top
#114384 - 2004-02-21 02:29 PM Re: Open a 2nd cmd prompt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22335
Loc: OK
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 )
_________________________
!

download KiXnet

Top
#114385 - 2004-02-21 03:06 PM Re: Open a 2nd cmd prompt
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#114386 - 2004-02-21 04:54 PM Re: Open a 2nd cmd prompt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22335
Loc: OK
see andy?
nice example
_________________________
!

download KiXnet

Top
#114387 - 2004-02-21 07:41 PM Re: Open a 2nd cmd prompt
AndyD Offline
Fresh Scripter
*

Registered: 2001-11-26
Posts: 17
@ Les: Thanks for understanding my grievance & hopefully guiding people away from doing it again.

@ Lonkero: Thanks for the pointers, all is OK now
_________________________
AndyD England, UK.

Top
#114388 - 2004-02-22 03:04 AM Re: Open a 2nd cmd prompt
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#114389 - 2004-02-22 09:53 AM Re: Open a 2nd cmd prompt
AndyD Offline
Fresh Scripter
*

Registered: 2001-11-26
Posts: 17
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....
_________________________
AndyD England, UK.

Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 176 anonymous users online.
Newest Members
diefnet, Arogya, gkustra, emnipetro, Hirze
17644 Registered Users

Generated in 0.041 seconds in which 0.011 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org