我想在这条路线C:\xampp\htdocs中启动我的 Cmder 控制台,但我不明白“任务参数”的语法。例如:
`/icon "%CMDER_ROOT%\cmder.exe`"
任何人都可以为此翻译吗?C:\xampp\htdocs to -> /icon "%CMDER_ROOT%\cmder.exe
"
非常感谢。
%USERPROFILE%
改为更改为所需的文件夹。
说明:打开 Cmder -> 设置 -> 任务 -> 选择 {cmd::Cmder} (在我的情况下)。在底部(文本区域下方),您有名为“启动目录...”的按钮,然后选择启动目录。关闭cmder,然后重新开始。就是这样,享受
编辑文件:\CMDER_DIRECTORY\config\user-profile.cmd
cd C:\xampp\htdocs
在下面的示例中,我更改了目录并创建了一个 rotine 来启动宅基地。
:: use this file to run your own startup commands
:: use in front of the command to prevent printing the command
:: uncomment this to have the ssh agent load when cmder starts
:: call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd"
:: uncomment this next two lines to use pageant as the ssh authentication agent
:: SET SSH_AUTH_SOCK=/tmp/.ssh-pageant-auth-sock
:: call "%GIT_INSTALL_ROOT%/cmd/start-ssh-pageant.cmd"
:: you can add your plugins to the cmder path like so
:: set "PATH=%CMDER_ROOT%\vendor\whatever;%PATH%"
e:
cd ../../../../../Homestead
@echo off
:Ask
echo Would you like to start the Homestead?(Y/N)
set INPUT=
set /P INPUT=Yes(y) ou No(n): %=%
If /I "%INPUT%"=="y" goto yes
If /I "%INPUT%"=="Y" goto yes
If /I "%INPUT%"=="n" goto no
cls
echo Invalid option
echo -
echo -
goto Ask
:yes
vagrant up
goto finalMessage
:no
cls
goto finalMessage
:finalMessage
echo Your console is ready Mr. Chapela.