Skip to main content
gamedev.net
๐Ÿ”’ Locked

External prog execution

Started by encom Mar 30, 2004 at 3:26 AM 0 replies 350+ views
Original Post
encom
encom
Hi, I would like to execute an external prog with this command line : "emmix < file.in" but emmix is not in %path% (windowsxp) so : "set path=%path%;%emmixPath%" "emmix < file.in" i use the system() function. system("set path=%path%;%emmixPath%"); system("emmix < file.in"); it doesnt work ! is it possible to execute 2 commands with the system function like system("set path=%path%;%emmixPath% ; emmix < file.in") ? this line doesnt work too, it set path with "=%path%;%emmixPath% ; emmix < file.in" !
Jerry Velders
Jerry Velders
Instead of messing around with the environment, why don''t you just use a complete pathname for the file?
Too old for this ...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.