Computing.Net > Forums > Programming > Dos batch file path issue

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Dos batch file path issue

Reply to Message Icon

Name: avs
Date: April 10, 2009 at 08:35:47 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

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=
cls
exit





Sponsored Link
Ads by Google

Response Number 1
Name: reno
Date: April 12, 2009 at 02:17:03 Pacific
Reply:

what was the problem?


0
Reply to Message Icon

Related Posts

See More


unix timestamp convertion Java Methods



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Dos batch file path issue

editing dos batch file www.computing.net/answers/programming/editing-dos-batch-file/20208.html

DOS Batch File Commands www.computing.net/answers/programming/dos-batch-file-commands/14637.html

Spilt a numeric value in dos batch file www.computing.net/answers/programming/spilt-a-numeric-value-in-dos-batch-file/19115.html