Hook my program to context menu via batch file.
Go to solution
Solved by HeftyNugget,
Nevermind, got it working - here's how it's done for others who stumble upon this post.
@echo off SET fpath=D:\Program\Program.exe echo "This is the path %fpath%" rem add item to folder context menu @reg add "HKCR\Directory\shell\Open with Program" /t REG_SZ /v "" /d "Open with Program" /f @reg add "HKCR\Directory\shell\Open with Program\command" /t REG_SZ /v "" /d "%fpath% "-path" "%%1" /f pause

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 accountSign in
Already have an account? Sign in here.
Sign In Now