Execute file/script from console while in-game?

Need help running various source ports? Did your computer break? Ask here.

Moderators: GZDoom Developers, LZDoom Developers, UZDoom Developers

Forum rules
Please be as descriptive as possible in your posts (list your hardware and operating system, the version of the source port you are using, any mods you are running and how they're being loaded, etc.)
This will help others to give you a solution!
User avatar
rat_taxi
Posts: 2
Joined: Thu Dec 12, 2024 11:08 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11

Execute file/script from console while in-game?

Post by rat_taxi »

Hello all, first post. Long time listener first time caller. etc.

Is it possible to execute a .bat file or script from the console that's within the running GZDoom directory? Say I've got a .bat file with a set of commands that I'd like for the console to execute in sequence, each separated with a carriage return - is this possible to do? I've tried [>.\file.bat] and the like, but no dice.

I've played around with the console commands and read some documentation, but haven't found anything concrete.

Any suggestions?
User avatar
Rachael
Posts: 13971
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: Execute file/script from console while in-game?

Post by Rachael »

Try "exec file.cfg"
User avatar
rat_taxi
Posts: 2
Joined: Thu Dec 12, 2024 11:08 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11

Re: Execute file/script from console while in-game?

Post by rat_taxi »

Rachael wrote:
> Try "exec file.cfg"

Exactly what I was looking for - thank you so much!
User avatar
Rachael
Posts: 13971
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: Execute file/script from console while in-game?

Post by Rachael »

You're welcome.

Return to “Technical Issues”