Jump to content

Detect Launch Via DblClick or commandline


Recommended Posts

Every so often i write a script that will be used mainly in the background and launched via scheduled tasks or startup. and on rare ocassions i need to make some modifications to the setup.

I am wondering if there is some way (not using $cmdline) to have the script detect if it was launched via a Double Click from the Windows GUI or if it was launched via some other method.

For the current script I'm working on, it would run it's normal processes when added to the scheduled tasks and or the Windows Startup. If I have to walk a user through double clicking on it, it would only be to modify some settings so I would need it to display my Edit gui instead of just running through the app.

Thanks,

Mike

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...