Link to home
Start Free TrialLog in
Avatar of santhoshd48
santhoshd48Flag for India

asked on

batch file to read the given path

batch script to check the given path in system,if exists quit,or else read the mif
Avatar of devil_himself
devil_himself
Flag of India image

or else read the mif ---> mif ??
@echo off
setlocal 
set dr_=C:\Documents and Settings\All Users
 
if not exist "%dr_%" (
    echo Folder "%dr_%" not found
    goto :EOF)

Open in new window

Avatar of santhoshd48

ASKER

our environment consists of lot of windows xp and vista,i need to check the path cd windows\itlm\example.exe.some machine may have windows and some may hav winnt.it need to check both.
@echo off
setlocal
set dr_=%windir%\itlm\example.exe
 
if not exist "%dr_%" (
    echo "%dr_%" not found
    goto :EOF)
do u know how to write mif file
ASKER CERTIFIED SOLUTION
Avatar of devil_himself
devil_himself
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial