>>ITEM: N0122
>>DATE: March 26, 1998
>>TYPE: Information
>>TITLE: N_REDIRECT fails if redirection already active
>>PRODUCT(S):
NetLib 6.5x for Clipper
NetLib 2.5x for FoxPro Windows
NetLib 2.5x for FoxPro DOS
>>PLATFORM(S):
>>SUMMARY:
Attempting to redirect a device with N_REDIRECT will fail if the
device is already redirected.
>>MORE INFORMATION:
>>RESOLUTION/FIX:
Use N_REDIRECT(device,"") to cancel redirection before creating
new redirection.
>>EXAMPLE(S):
* returns .F. if redirection already exists
? N_REDIRECT("LPT1",\\Isis\HP5",3)
.F.
* cancel redirection first
=N_REDIRECT("LPT1","")
IF N_REDIRECT("LPT1",\\Isis\HP5",3)
? "LPT1 redirected to:", N_REDIRECT("LPT1")
ENDIF
>>SEE ALSO:
N01020, N01021
>>COPYRIGHT 1998 Communication Horizons
All rights reserved worldwide.
No distribution without specific consent of publisher.
Knowledgebase
Top Home