【发布时间】:2018-03-02 08:08:55
【问题描述】:
我为 python 设置了环境变量,如果我不在批处理文件中接受用户输入,我可以运行 python。但如果我接受用户输入,我将无法在批处理文件中运行 python 脚本。
@echo off
set /p Path="Enter Folder path in which all the timestamp files are stored: "
echo %path%
:: this is to read ip address from report folder to ipaddress.txt
dir %Path% /b /a-d > ipaddress.txt
echo %cd%
python trial.py
【问题讨论】:
标签: python-2.7 batch-file