I am new to windows batch script, I have a simple program which creates a folder if not exists and moves the file from another directory into the folder.
The Code works perfectly when executed the lines over command window, but does not work when I double click on the .bat file. Need your help regarding this.
.bat file script:
@echo off
if not exist "D:\KUMAR_398519667_9262017"
mkdir D:\KUMAR_398519667_9262017
move D:\Siebel\15.0.0.0.0\ses\siebsrvr\TEMP\10488_1540_0_4D44EED2-8EEE-11E7-B1F0-5056B24CF000.docx D:\KUMAR_398519667_9262017
if not exist "D:\KUMAR_398519667_9262017"
is not valid. You need a command after if – phuclv