rojarsmith / TrayToolbar

Provide the replacement of add new toolbar function that was cancelled in windows 11
81 stars 1 forks source link

CMD / BAT Files #17

Open Steve0212a opened 1 year ago

Steve0212a commented 1 year ago

I know this was already talked about in https://github.com/rojarsmith/TrayToolbar/issues/6, but I wanted to discuss it further. I have a lot of CMD files and do not want to change them all to have a CMD file that calls the original cmd file.

You mentioned in issue #6: TrayToolbar run this command: "cmd.exe" /c "MyPath\My link.lnk"

For some reason, I do not see your code in the repo - just the images. Assuming you are using .net, couldn't you just do Process.Start? I believe that for any file, you can do a process.start and run it. (Might need to set a parm on ProcessStartInfo to do a shell execute I believe). You can even process.start a word doc and word would open. Process.Start("xxx.cmd");

Thoughts?