Reputation: 21
I am having a VM, windows instance (GCE) on google cloud platform. I want to run a program(.exe) every time at the start of the instance.
I am able to run the file by putting it in the startup folder. but I want to run it using startup script as suggested by google here: running startup scripts on a google compute engine
Upvotes: 2
Views: 1544
Reputation: 1437
To run .exe
on GCP when Windows VM instance start/restart.
windows-startup-script-cmd
as the metadata key. /path/to/exe-file
Upvotes: 2