kad&o Posted December 12, 2006 Share Posted December 12, 2006 Hello, I want to know if it's possible to return a message in a dos cmd. I've written a script for installation of a software. If the exe is run locally by the user, messages are returning by the msgbox (This part is OK ) If I launch the script remotely ( with psexec ), i want to send messages in the dos window which has run the compiled script ( like space left too short ) Can you help me please ? Thanks a lot David Link to comment Share on other sites More sharing options...
martin Posted December 12, 2006 Share Posted December 12, 2006 Hello,I want to know if it's possible to return a message in a dos cmd.I've written a script for installation of a software. If the exe is run locally by the user, messages are returning by the msgbox (This part is OK )If I launch the script remotely ( with psexec ), i want to send messages in the dos window which has run the compiled script ( like space left too short )Can you help me please ?Thanks a lotDavid If you mean that you want to be able to see the reponse that you would see on the command line, then all you have to do is redirect the output to a file, then read the file. There might be a neater way but that's how I would do it. Run(@ComSpec & " /c " & 'commandName >c:\temp\output.txt', "", @SW_HIDE) Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now