Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FoxPro 2.6 compatibilty with Windows 2000?????

Status
Not open for further replies.

phaas

Technical User
Oct 11, 2000
5
US
Hi! Data processing analyst, fairly new, and need some help. I run foxpro 2.6 for DOS and the entire company will be upgraded to 2000...PRoblem is that when I run a process for reports that is supposed to copy to a shared directory, it always comes up with path not found. Found this running tests for 2000) Now I can reach this path and follow thru and also can copy it from command prompt to that directory..so obviously works in DOS so I tried to call a batch file from my foxpro program and still no such luck! Any suggestions would be immensly appreciated. [sig][/sig]
 
do case
case the directory/filename is a long filename or contains a character not authorized in dos ver < 6
Enclose the directory and filename in quotes
example
lcfilename = sys(3)+&quot;_test.dbf&quot;
lcdir = &quot;c:\program files\fpd_26\&quot;
lcfile = '[red]&quot;[/red]'+lcDir +lcfilename+'[red]&quot;[/red]'
copy file ('[red]&quot;[/red]'+lcfilename+'[red]&quot;[/red]') to (lcFile)

case file already exists or convert it to a dos8.3 name
see the FAQ area on the source code for getdos83().
lcfilename = sys(3)+&quot;_test.dbf&quot;
lcFile1 = getdos83(lcFilename)
lcdir = &quot;c:\program files\fpd_26\&quot;
lcfile2=getdos83(lcDir+lcFilename)
copy file ( lcFile1) to (lcFile2)

otherwise
Hope someone else can help you

endcase
[sig]<p>David W. Grewe<br><a href=mailto:Dave@internationalbid.net>Dave@internationalbid.net</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top