I have a script package that runs vlc for me on my network, the problem is that it opens based on the URLs in the browser. The browser automatically adds% 20 instead of the usual space, and I need to replace this with a regular space again in my script package before sending the file path to vlc.
Here is my code;
@echo off set str=%1 set str=%str:~8% set str=%str:%%20= % START /D "C:\Program Files\VideoLAN\VLC\" vlc.exe %str% pause
It is worth noting that this will work on Windows 7 and / or vista.
@echo off setlocal enabledelayedexpansion set str=%~1 set str=%str:~7% set str=!str:%%20= ! "C:\Program Files\VideoLAN\VLC\vlc.exe" "%str%" pause
. script , ". , %. , start , , , VLC .
"
%
start
Source: https://habr.com/ru/post/1759025/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1759020/java-can-i-require-a-child-class-to-define-a-property-value&usg=ALkJrhiKJdOExbMDSPCPWqQVaNxKOPhHoAIs it possible to create simple C # programs using VS2010 Express? - c #Protobuf, how to add custom binary version - protocol-buffersEndless loop and user input as completion - pythonWIX: Generate conditions? - conditionCreating a Custom Login Form Using Spring Security - javaHow to find certain elements in a matrix in MATLAB? - matlabWhich Emacs ... for Mac OS X? ... for Windows? ... for Linux? - linuxHelp decrypt iPhone application code - objective-cWhat does SQL Server do for spatial data outside the bounding box of the index? - sql-serverAll Articles