尝试编写基本宏
:: go to install folder
CD %USERPROFILE%\AppData\Local\Vivaldi\Application
:: take a search
DIR common.css /b /s
然后我得到了结果
C:\Users\username\AppData\Local\Vivaldi\Application\1.13.1008.14\resources\vivaldi\style\common.css
现在我必须CD
到这条路,没有双手=)
:: make a filepath
DIR %USERPROFILE%\AppData\Local\Vivaldi\Application\*common.css /s /b > %USERPROFILE%\Desktop\filepath.txt
:: placing the first line of a file into a variable
SET /P _path=<filepath.txt
但在我需要进行更改之后
TYPE C:\\vs\AppendThis.txt >> (paste _path here) common.css
只需将我的变量放在%_path%中就可以了! = 0