Search found 3 matches

by manoj12
05 Feb 2016 04:23
Forum: DOS Batch Forum
Topic: Check for File Exist
Replies: 5
Views: 4477

Re: Check for File Exist

Hi Sir, REM Copy File in one destination to another -------------------------------------------- if not exist "F:\Staffing_Dashboard_Data\GX\GX_CSV_Files\*.csv" goto :fail :FileExists setlocal set srcDir=F:\Staffing_Dashboard_Data\GX\GX_CSV_Files\ set destdir=D:\Staffing_Dashboard_Data\GX\...
by manoj12
04 Feb 2016 11:09
Forum: DOS Batch Forum
Topic: Check for File Exist
Replies: 5
Views: 4477

Re: Check for File Exist

Hi Sir,

This script always gives File does not exist even if file is present in the F:\My_Dashboard_Data\Alpha1\Source_files\ Location

I wanted if latest file exist then return latest file else give me file does not exist.

Appreciate your help sir
by manoj12
02 Feb 2016 09:17
Forum: DOS Batch Forum
Topic: Check for File Exist
Replies: 5
Views: 4477

Check for File Exist

Hi Sir, This is my source code which will copy the latest file from a F:\ to D:\ and will send email if file exists. @echo off REM Copy Latest File in one destination to another -------------------------------------------- rem The first part of your code goes here rem The rest of your code goes here...