#current directory and/or commandline arguments

1 messages · Page 1 of 1 (latest)

vivid cedar
#

So I have made a little tool in GameMaker (windows-exe), which will batch-process things for another project.

Thing is, working_directory always contains the folder where the exe is or the folder in the user profile, where file writes will happen.

I have disabled the sandbox.

now i have a batch file, which will launch the tool and I want the tool to run in the windows current directory (where my batch file is, NOT where the exe of the game is).

Example:

// Batch file
cd c:\some_folder
start c:\tools\gml-utility\gml-utility.exe  // this is my tool

now i want the tool to work in c:\some_folder and NOT in c:\tools\gml-utility

How can I do that?
According to the manual, I can not access commandline arguments sent to the exe aside of those noted in the manual, but those only set debug output and such things -- i want to send CUSTOM arguments or make the tool use the current directoy.

Any way to achieve this?

paper topaz
#

According to the manual, I can not access commandline arguments sent to the exe

#

Well idk where you read that from

#

But that's very wrong lol

quasi ridge
#

you can get command line arguments... Tab beat me to it

#

anything that is not understood by the Runner argument parser is passed onto the game

vivid cedar
#

ok then i must have missed this -- one second

#

my apologies for this -- I did not know about the other functions... Will try immediately