Next.js Discord

Discord Forum

Execute a batch file in nextjs

Answered
Pacific herring posted this in #help-forum
Open in Discord
Pacific herringOP
I have a batch file that is outside the nextjs folder.
Project
L Game Server
L server.bat
L NextJS Server
L page.tsx where I have button to turn server.bat online

I'm using exec function but looks like it doesn't work? nothing happens . I'm wondering if there is something else I have to use for nextjs.
Answered by Pacific herring
fixed
View full answer

1 Reply

Pacific herringOP
fixed
Answer