我有類似以下的東西...... set /p dir=Specify Path:
if exist %dir% (
echo ok
) else(
echo not ok
)
如果用戶輸入類似%USERPROFILE%的路徑或變量%時,DIR%是用來%USERPROFILE%之內沒有擴大 。 例如 set dir=%userprofile%
echo %dir% :: this doe
我的代碼段中,如下回聲線: echo "$(wc -l prov_bulk) provisioning commands found between $t_stmp1 of $(head -1 file_list) till $t_stmp2 of $(tail -1 file_list)"
預期輸出: 1054721 provisioning commands found between 2