I want to handle the error if anything went wrong while deleting the files and folders.
My target files and folders are on remote server not on the same server..
I tried with pushd, popd and rd commands but unfortunately it doesn't sends the errorlevel
Can anyone help me on this..
MY Requirement with following conditions
1. Delete all the files and folders expect the parent folder (log) on a remote server for example my remote server path
2. Delete all files and folders with some exclusion say for example this is the following path
I want to delete all the files and folders except some three folders and its content (logs, security, stage)
3. I want to handle the error if something went wrong while deleting the files or folder the script needs to come out and echo the error which I got in cmd.
Discussion forum for all Windows batch related topics.
1 post • Page 1 of 1