I'm having some trouble trying to launch an .exe on my system. I've tried numerous combinations the system command to no avail. What happens is that it will start to launch the program, and then error out saying "Cannot load default .cfg file." This is the first time I've tried to access an exe outside of maya, so any help would be much appreciated. Here's some of what I've tried so far:
system "start C:/folder/prog.exe";
system "C:/folder/prog.exe";
system ("C: &cd folder &prog.exe");
system ("C: &cd folder &C:/folder/prog.exe")
... etc.
Even if I do:
system ("C: &DIR")
It will only return the current maya directory, not the one on C:. Is there a way to actually get it to change the directory so it can find and load the config file and run the exe? Or is there another way to go about this? Thanks for any help.