Slash or Backslash in command line for directorys?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
slimmi
New Cone
New Cone
Posts: 9
Joined: 10 Jul 2015 18:21

Slash or Backslash in command line for directorys?

Postby slimmi » 14 Feb 2017 14:11

Hello,
i use the command line for recording my desktop.
I had to find that in the directory once both slash / and backslash \ works and other times only one of both. In one case, even two backslashes were OK.
What is the correct use?
All examples works:

Code: Select all

START "" F:\VIDEOLAN\VLC215\vlc.exe --extraintf=logger --verbose=2 --logfile=F:\VIDEOLAN\vlc.log --logmode=text --file-logging screen:// :screen-fps=25 :screen-left=0 :screen-top=0 :screen-width=960 :screen-height=540 :sout=#transcode{vcodec=h264,vb=1600}:file{dst=F:\\VIDEOLAN\\Test_01.mp4}

Code: Select all

START "" "F:/VIDEOLAN/VLC215/vlc.exe" screen:// :screen-fps=25 :screen-left=0 :screen-top=0 :screen-width=960 :screen-height=540 :sout=#transcode{vcodec=h264,vb=1600}:file{dst=F:/VIDEOLAN/vlc02.mp4}

Code: Select all

START "" "F:\VIDEOLAN\VLC215\vlc.exe" screen:// :screen-fps=25 :screen-left=0 :screen-top=0 :screen-width=960 :screen-height=540 :sout=#transcode{vcodec=h264,vb=1600}:file{dst=F:/VIDEOLAN/vlc02.mp4}

Code: Select all

START "" "F:\VIDEOLAN\VLC215\vlc.exe" screen:// :screen-fps=25 :screen-left=0 :screen-top=0 :screen-width=960 :screen-height=540 :sout=#transcode{vcodec=h264,vb=1600}:file{dst=F:\VIDEOLAN\vlc02.mp4}

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Slash or Backslash in command line for directorys?

Postby Jean-Baptiste Kempf » 15 Feb 2017 10:32

I'd argue only the last one is valid.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 54 guests