nbarkhina / DosWasmX

Build your own DOS/Windows machine in the browser
https://www.neilb.net/doswasmx/
MIT License
28 stars 3 forks source link

How To Preload Zip? #4

Closed 4kh00 closed 4 months ago

4kh00 commented 4 months ago

Hi! I have a disk image that I want to have users see when the app is loaded. You explain this in the documentation. However, I also want to run a command automatically on machine load. How would I do this? Thank you!

nbarkhina commented 4 months ago

Hi @4kh00 - what you can do is edit script.js on line 806 and add commands here - make sure each command is separated by \r\n

image

4kh00 commented 4 months ago

Holy CRAP, that was fast! Thanks for everything, you're doing God's work.

4kh00 commented 4 months ago

So, kinda like ``` { responseText = responseText.replace('[autoexec]', '[autoexec]\r\nimgmount c \"' + this.base_name + '.img\"\r\n' + multiFileScript + 'boot c:' + 'cd oregon && oregon.exe'); }

nbarkhina commented 4 months ago

more like this -

{
responseText = responseText.replace('[autoexec]',
'[autoexec]\r\nimgmount c "' + this.base_name +
'.img"\r\n' + multiFileScript + 'boot c:' + '\r\ncd oregon\r\noregon.exe');
}
4kh00 commented 4 months ago

Thanks!