Logo 
Search:

Dos Articles

Submit Article
Home » Articles » Dos » BatchRSS Feeds

CHECKING THE EXISTANCE OF FILE AND DISPLAYING IT.

Posted By: Milind Mishra     Category: Dos     Views: 2400

CHECKING THE EXISTANCE OF FILE AND DISPLAYING IT.

Code for CHECKING THE EXISTANCE OF FILE AND DISPLAYING IT. in Dos

@echo off

CLS


REM           CHECKING THE EXISTANCE OF FILE AND DISPLAYING IT.

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

ECHO          THIS IS BATCH FILE SHOWING THE STRING COMPARISON.

IF EXIST %1 GOTO TRUE
        GOTO FALSE
        GOTO EXIT

:TRUE
        TYPE "%1%"
        GOTO EXIT


:FALSE
        COPY CON %1
        TYPE %1
        GOTO EXIT


:EXIT

@ECHO ON
  
Share: 


Didn't find what you were looking for? Find more on CHECKING THE EXISTANCE OF FILE AND DISPLAYING IT. Or get search suggestion and latest updates.

Milind Mishra
Milind Mishra author of CHECKING THE EXISTANCE OF FILE AND DISPLAYING IT. is from India.
 
View All Articles

Related Articles and Code:


 
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!