Auto run of a .ksh extension file in windows 10

I need to have a .ksh file to start at a startup using command prompt in windows 10 operating system.

Welcome to the forum!

Do you mean a login or a system boot?
How do you manually start your .ksh file?

i will run .ksh using bash command in command prompt in windows 10

system boot

According to

I would place a myscript.bat file in the Startup folder and contents

@echo off
\path\to\bash /path/to/script.ksh

I assume that bash wants forward slashes for the script path.
For interactiveness go for .vbs in lieu of the .bat

1 Like

To run a script file at startup in Windows 10, you can do the following:

  1. Open the Start menu and type "Task Scheduler" in the search bar.
  2. Click on "Task Scheduler" to open the app.
  3. In the Task Scheduler app, click on "Action" in the menu bar and select "Create Basic Task..."
  4. In the "Create Basic Task" window, give your task a name and description, and then click "Next".
  5. On the next screen, choose when you want the task to start. You can choose "At startup" to run the task as soon as the computer starts.
  6. On the next screen, select the "Start a program" option and click "Next".
  7. On the next screen, click the "Browse" button and select the .ksh file you want to run at startup.
  8. Click "Next" and then click "Finish" to create the task.

This will cause the script file to run whenever the computer starts up. If you want to make any changes to the task, you can do so by right-clicking on the task in the Task Scheduler and selecting "Properties".

1 Like