Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » executing commands and viewing it's result
Re: executing commands and viewing it's result [message #23102 is a reply to message #23099] Thu, 17 September 2009 09:32 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello TeCNoYoTTa

You can also use the LaunchCommand function in Bazaar/SysInfo package Smile

String LaunchCommand(const char *cmd)

where cmd is just the command line string. It returns the command output.

It is documented and if you see the code in the same SysInfo.cpp you will see many examples of its use.

This function does work for Windows and Linux. The exception is in basic OS commands in Windows like "dir" and "copy". If you want them to work out of a command line and hidden it will be needed something different.
It is not usually necessary as this commands are so basic that their functionality is included in libraries (list files in folder, copy files, ...).

All other console programs will run perfectly.

Best regards
Koldo


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Splitting a string by a string?
Next Topic: *Map::IsPicked() is missing
Goto Forum:
  


Current Time: Mon May 13 02:10:57 CEST 2024

Total time taken to generate the page: 0.01450 seconds