Sign in to follow this  
Followers 0
kad&o

Return message in dos cmd

2 posts in this topic

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

Share this post


Link to post
Share on other sites



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

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0