Learn Linux/Windows/Unix administration and shell scripting

“Knowing others is intelligence; knowing yourself is true wisdom. Mastering others is strength; mastering yourself is true power.” Arvind Toorpu

Pages

  • Home
  • Linux-Unix
  • Windows Server
  • Oracle 11g
  • Oracle 12c
  • RAC

Thursday, September 7, 2017

Batch script to check if file exist or not


This is a simple windows batch script to check if a file exists or  not



ECHO CHECKING IF FILE EXISTS
set FILEEXISTS=FILE_NAME                          REM ENTER FILENAME HERE
if exist %FILEEXISTS% (DO SOMETHING)
ELSE (DO SOEMTHING ELSE )
Posted by Arvind Toorpu at 11:34 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Labels

administration backup files char_conversion cleanup files cmdline encryption error handling error log exit codes features firewall gpg gpg encryption hostname change installation linux linux cmds Linux-cmds loop MS-DOS oracle-export-script ports pscp putty read input security services sftp shell-scripting SqlServer VirtualBox VM windows server

Blog Archive

  • ▼  2017 (1)
    • ▼  September (1)
      • Batch script to check if file exist or not
  • ►  2016 (26)
    • ►  December (2)
    • ►  September (7)
    • ►  June (4)
    • ►  April (3)
    • ►  March (5)
    • ►  February (5)
  • ►  2015 (9)
    • ►  November (9)

Connect with me on Linkedin

View Arvind Toorpu's profile on LinkedIn
Picture Window theme. Powered by Blogger.