I have two Windows batch file. Both work when called from command prompt. Only one of the two run runs when double clicked. How come?
The following script (named CopyToStation9.bat) runs with a double-click:
@echo off for /R "C:\Users\XXX\Documents\XXX" %%f in (*.csv) do copy "%%f" "\\192.168.0.10\c\X"
The following script (named CleanUp.bat) doesn't run with a double-click
@echo off set delFileList=.\test\ for %%A in (%delFileList%) do ( del /Q %%A echo file %%A deleted )