Dos batch file path issue

April 10, 2009 at 08:35:47
Specs: Windows XP
I have created a batch file I am ruuning the batch file from N:\FILE_PROCESSING
But I need the batch file to look up the files in this dirctory Z:\Choicelinx\HIPAA834\Vendors-Outbound-834's

This is my batch file

rem @echo off
@set subdir=%~dp0
@set filepath = "Z:\Choicelinx\HIPAA834\Vendors-Outbound-834's\"
@set filename= %~nx1
@set filedst=C:\FileProcessing\filedestination.txt
@set logfile=C:\FileProcessing\log.log
@set batchname=C:\FileProcessing\processes.bat
@setLocal EnableDelayedExpansion

rem echo %filedst% >>"%logfile%"

for /f "skip=18 tokens=1,2,3,4,5 delims=," %%g in (%filedst%) do (
echo %filename% | findstr /i %%g
rem echo %1, %%h, %%i, %%j, %%k >>"%logfile%"
if not errorlevel 1 (call "%batchname%" %1 %%h %%i %%j %%k)


echo unknown file: %filename% >>"%logfile%"

set subdir=
set filename=
set searchfor=
set logfile=
set batchname=

See More: Dos batch file path issue

Report •

April 12, 2009 at 02:17:03
what was the problem?

Report •
Related Solutions

Ask Question