0

how to convert the following into batch

if [ -f /images/$CMVC_RELEASE/latest ]; then
  rm -f /images/$CMVC_RELEASE/latest
fi
Roberto Reale
  • 4,247
  • 1
  • 17
  • 21
niknik123
  • 179
  • 1
  • 7
  • What do you mean by *batch*? A Windows `.bat` file? – Frédéric Hamidi Aug 13 '14 at 12:34
  • 1
    `if exist "\images\%CMVC_RELEASE%\latest" del "\images\%CMVC_RELEASE%\latest"` would be a Windows batch code to delete file `latest` in folder according to value of environment variable `CMVC_RELEASE` in folder `images` which is a subfolder of root of current drive. – Mofi Aug 13 '14 at 18:00

0 Answers0