I am trying to set a task schedule to execute the command which installs the Python packages. However, the path of packages contains some space. I tried many way but could not get a good solution.
The batch file
@echo off
cd /d "Python-Installer"
@echo on
SCHTASKS /delete /tn "test" /f
SCHTASKS /create /tn "test" /sc ONCE /ST 00:00 /RL HIGHEST /tr "cmd.exe /k pip install "C:test dataPython-Installernumpy-1.19.5-cp36-cp36m-win32.whl" "C:test dataPython-Installeropencv_python-4.5.4.60-cp36-cp36m-win32.whl""
SCHTASKS /run /tn "test"
pause
The result:
Please help me to “kill” the spaces in the code.
Thank you in advance.
Any suggestion is appriciated.