Passing sftp info of selected file to batch command to start stream in VLC

I am currently trying to make the below command work in Directory Opus. The command works if I manually input the information for the sftp link, and creates a stream in VLC. However, I wish to automate this and create button that will pass in the information of the currently selected file and I have not been able to figure it out. Just passing through the file path should work for me, but it would be great if all info could be passed through so it could work in any scenario.

@runmode:hide
"C:\Program Files\VideoLAN\VLC\vlc.exe" "sftp://[user]:[password]@[IP]:[port]/[path to file]"

You can use @nolocalizefiles to pass FTP paths to external tools, but it probably won’t be in the exact format you need. You may need to use scripting to adjust the format to what the other exe expects.

It won’t include the username and password.

yep, that is what I was missing. Below is the command, which works for what I want.

@runmode:hide
@nolocalizefiles
"C:\Program Files\VideoLAN\VLC\vlc.exe" "sftp://[user]:[password]@[IP]:[port]/{filepath|noroot}"
1 Like