Page 1 of 1 1
Topic Options
#212658 - 2017-08-31 08:53 PM "msg" unknown command
KLudwig Offline
Just in Town

Registered: 2017-08-31
Posts: 2
Loc: Arkansas, USA
We are trying to configure a script that can pop open a msg box on a users desktop. The command works fine from the command prompt, but returns as "unknown command" when initiated from KiXtart.

shell "cmd.exe /c msg * /v /server:admin-kerry This is a test message."

I've tried many variations of the command with nested quotes, full path to cmd.exe, etc. I can always get it to work directly but not when triggered from KiXtart. I've even put the command in a batch file with other various commands (mkdir, etc..). It works fine from the batch file directly. I run the batch from KiXtart, the msg fails but everything else works.

Any help would be greatly appreciated.


Edited by KLudwig (2017-08-31 09:34 PM)

Top
#212661 - 2017-09-01 12:32 AM Re: "msg" unknown command [Re: KLudwig]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4560
Loc: USA
You are probably running into a path / 32/64bit issue.

Try this.

 Code:
$RC=setoption("Wow64FileRedirection","OFF")
shell "%comspec% /c msg.exe * This is a test message."

Top
#212662 - 2017-09-01 02:53 AM Re: "msg" unknown command [Re: Allen]
KLudwig Offline
Just in Town

Registered: 2017-08-31
Posts: 2
Loc: Arkansas, USA
Yes. That was it. It works exactly as it should now.
Thank you for your help! \:\)

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 1005 anonymous users online.
Newest Members
min_seow, Audio, Hoschi, Comet, rrosell
17881 Registered Users

Generated in 0.048 seconds in which 0.021 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