-
Notifications
You must be signed in to change notification settings - Fork 2
/
browser.bat
28 lines (18 loc) · 744 Bytes
/
browser.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@echo off
setlocal EnableDelayedExpansion
set mystring=%*
REM echo %mystring%
if !mystring:~0^,1!!mystring:~-1! equ "" (
echo -^> String is quoted
%USERPROFILE%\AppData\Local\Yandex\YandexBrowser\Application\browser.exe %mystring%
) else (
echo -^> String not quoted
%USERPROFILE%\AppData\Local\Yandex\YandexBrowser\Application\browser.exe "%mystring%"
)
echo/
@REM set variable=%*
@REM IF "%variable:~0,1%"==""" (set f=%variable%) else (set f="%variable%")
REM %USERPROFILE%\AppData\Local\Yandex\YandexBrowser\Application\browser.exe %*
REM pause
@REM 使用everything打开时,会自动加上 ""
@REM C:\Users\Administrator\AppData\Local\Yandex\YandexBrowser\Application\browser.exe ""C:\QGB\Document\三维空间子群网的推导 .pdf""