realonameo Posted September 28, 2023 Share Posted September 28, 2023 First of all, I would like to thank you for reading my post. I try to run: Quote Local $VLC = @WorkingDir & "\VLC\VLCPortable.exe " Local $Playlist = @WorkingDir & "\[RunThis] BackgroundContentPlay.m3u" Local $iPID = Run('"' & $VLC & '"' & '"' & $Playlist & '"', "", @SW_SHOWMAXIMIZED) Success! But, when I try to run: Quote Local $VLC = @WorkingDir & "\VLC\VLCPortable.exe " Local $Playlist = @WorkingDir & "\[RunThis] BackgroundContentPlay.m3u" Local $Command = '"--repeat" "--playlist-autostart" "--one-instance"' Local $iPID = Run('"' & $VLC & '"' & '"' & $Playlist & '"' & '"' & $Command & '"', "", @SW_SHOWMAXIMIZED) Failed! My filepath: C:\Users\FAZ-FX505D\Downloads\Folder 1 Name with White Space\VLC\VLCPortable.exe C:\Users\FAZ-FX505D\Downloads\Folder 1 Name with White Space\[RunThis] BackgroundContentPlay.m3u I have run it successfully in batch file: "%~dp0\VLC\VLCPortable.exe" "%~dp0\[RunThis] BackgroundContentPlay.m3u" --repeat --playlist-autostart --one-instance I am stuck. I don't know how many more single quote or double quote to put or where to put. I have been try and error for hours. Link to comment Share on other sites More sharing options...
realonameo Posted September 28, 2023 Author Share Posted September 28, 2023 I try to run: Quote Local $VLC = @WorkingDir & "\VLC\VLCPortable.exe " Local $Playlist = '"\[RunThis] BackgroundContentPlay.m3u" "--repeat" "--playlist-autostart" "--one-instance"' Local $iPID = Run($VLC & $Playlist, "", @SW_SHOWMAXIMIZED) Success! Link to comment Share on other sites More sharing options...
Solution Andreik Posted September 28, 2023 Solution Share Posted September 28, 2023 Try this: Local $VLC = @WorkingDir & "\VLC\VLCPortable.exe" Local $Playlist = @WorkingDir & "\[RunThis] BackgroundContentPlay.m3u" Local $Command = '--repeat --playlist-autostart --one-instance' Local $iPID = Run('"' & $VLC & '" "' & $Playlist & '" ' & $Command, "", @SW_SHOWMAXIMIZED) When the words fail... music speaks. Link to comment Share on other sites More sharing options...
realonameo Posted September 29, 2023 Author Share Posted September 29, 2023 @Andreik Thank you very much! Link to comment Share on other sites More sharing options...
Recommended Posts
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