VOGONS


First post, by steigrafx

User metadata
Rank Newbie
Rank
Newbie

I would like to call a batch file from within the Dosbox conf file, using the Windows 7 environment variable %username%. In a batch file, I use the line:

call u:\dbmaster\batch\%username%.bat

Is there a way to use this variable in the Dosbox conf file?

Thanks,
Kevin

Reply 1 of 2, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Do you mean in the autoexec section of DOSBox.conf ? No, definitely not.

You might be able to use a command of that nature from the DOSBox shortcut in your Start menu, with the "-c" switch.

Reply 2 of 2, by steigrafx

User metadata
Rank Newbie
Rank
Newbie

Thank you. I've been pulling my hair out over this one.

Have a great day.

Kevin