|
Answer» Hi, Can any one tell me how to FIND if a folder exists in the given UNC PATH or not using batch command
All I want to do is 1> Go to a UNC path 2> Check if folder exists if YES copy the file from source to destination if NO Create the folder with currentdate and then move the file
I going to the UNC path by saying pushd %XMLFileDestination%
I am trying something like this
IF %XMLFileDestination%( Echo FolderAlreadyExists ) else ( mkdir %date:~12,2%%date:~4,2%%date:~7,2% Echo FolderCREATED )
where %XMLFileDestination% is a UNC path how about Code: [Select]IF EXISTS %XMLFileDestination% SORRY for the TYPO IF Exist "%XMLFileDestination% (
this is what I am trying its not working ((Quote from: Fire_Hope on January 28, 2010, 02:18:19 PM IF Exist "%XMLFileDestination%" (
|