windows - Batch file not working: Spaces in path -


set rf_properties="%arcot_home%\conf" dir %rf_properties% if not exist %rf_properties% goto no_rf_properties 

the arcot_home variable above has spaces. dir command works , lists files, if command fails "the syntax of command incorrect.". there way make work?

try way round:

set rf_properties=%arcot_home%\conf dir "%rf_properties%" if not exist "%rf_properties%" goto no_rf_properties 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -