Posted by Jim Guerber on February 04, 2005 at 12:53:46:
In Reply to: Re: dosfc instruction in c2005 posted by Marc Shevick on February 04, 2005 at 10:57:28:
ok,
I configured a folder on my c drive called sdrive and made the following folder structure: c:\sdrive\download\price\
and in it I copied a text file called ptrans.ftp.
I mapped a drive s: to c:\sdrive
I compiled the following program:
! //IB// OPT("D")
length 2 & local ax$ cx$ null$
length 100 & local pcname$ dosfile$
clear
null$ = '@0000@'
pcname$ = 's:\download\price\ptrans.ftp'
Dosfile$ = Strip(Pcname$) + "@00@"
Ax$ = "@3D42@" & Cx$ = Null$
Dosfc(Ax$,Cx$,Dosfile$) !Excp=Procfile ! Open Input File
print 'done'
wait
stop
It runs just fine!
I do not know what to do to duplicate your problem????
You should be able to cut and paste this source and run it without changes to get the error. Please try it.
thanks,