Jump to content

Problem: White Spaces in Path


realonameo
 Share

Go to solution Solved by Andreik,

Recommended Posts

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

  • Solution

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

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...