Logo 
Search:

Dos Articles

Submit Article
Home » Articles » Dos » BatchRSS Feeds

BATCH FILE SHOWING THAT WHETEHER THE FILE EXIST OR NOT

Posted By: Milind Mishra     Category: Dos     Views: 3085

BATCH FILE SHOWING THAT WHETEHER THE FILE EXIST OR NOT.

Code for BATCH FILE SHOWING THAT WHETEHER THE FILE EXIST OR NOT in Dos

@echo off

REM           HELPS TO ACCESS THE COMMAND LINE PARAMETERS.

REM           BATCH FILE STARTS..............

 
if exist %1 goto fa
    goto tr  
    goto exit

:fa
    echo FILE DOES EXIST.
    goto exit

:tr 
    echo FILE DOES NOT EXIST.
    goto exit

:exit

@echo on
  
Share: 


Didn't find what you were looking for? Find more on BATCH FILE SHOWING THAT WHETEHER THE FILE EXIST OR NOT Or get search suggestion and latest updates.

Milind Mishra
Milind Mishra author of BATCH FILE SHOWING THAT WHETEHER THE FILE EXIST OR NOT is from India.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!