How do i execute a .bat file in glitch

how do i execute a .bat file in glitch

Find a service that would convert it to a .sh file.

Hello! Batch (.bat) files can only be ran on Windows machines. Glitch runs on Linux. Thus meaning the batch files won’t work.

Coversion is relatively simple:

Add #!/bin/sh to the first line and it’ll tell linux which interpreter it should use, and make sure that commands have aliases so it runs smoothly.

If these fail, rename to .sh and follow the above steps, hope this works!

1 Like

Some bash commands are not compatible. There’s an extremely high chance the script won’t run due to referencing drive letters or windows-only commands.

1 Like