Mud-H Posted July 28, 2015 Share Posted July 28, 2015 Hi!I'm wondering if there's a way with stock engine code to call a windows batch file (.bat) or an external tool executable? The main reason I'm asking for that is that I want to delete files from torqueScript, is there a built-in way to do it that I'm not aware of?Even if there's a torque way to do it, I'd still like to know if it's possible to call external .bat or .exe? Quote Link to comment Share on other sites More sharing options...
LukasPJ Posted August 13, 2015 Share Posted August 13, 2015 function shellExecute( (string executable, string args, string directory) )@brief Launches an outside executable or batch file@param executable Name of the executable or batch file@param args Optional list of arguments, in string format, to pass to theexecutable@param directory Optional string containing path to output or shell@ingroup Platform But you can also just use fileDelete("file.cs").Edit: also, this might be of interest: http://wiki.torque3d.org/introduction:generating-the-engine-and-script-documentation (created it just now). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.