Long ago, I rigged up a simple .PRG to copy files from our Live
production area to our testing areas. One person's testing area
includes an apostrophe in his directory name. The names below have been
changed to protect the guilty. lol
lcLAN = [G:\Apps\Data\] && Live
lcLocal = [G:\Test\Mike's Test Data]
IF NOT DIRECTORY(lcLocal) THEN
MKDIR (lcLocal)
ENDIF
liCnt1 = ADIR(laLANfiles,lcLAN + "*.DBF")
liCnt2 = ADIR(laLocalFiles,lcLocal + "*.DBF")
The 2nd ADIR (liCnt2) returns 0. I know there are files there. That
darn single quote is causing the issue. Yet if I run this at the
command line it works as expected:
? ADIR(crap,"G:\Test\Mike's Test Data\*.DBF")
Suggestions/ideas?
tia,
--Mike
--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.