Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_redirect( <cdevice> [, <cnetpath> | '' ] [, <ntype> [, <cpassword> ] ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_REDIRECT( <cDevice> [, <cNetPath> | '' ] [, <nType> [, <cPassword> ] ] )


Parameters

<cDevice>
Drive letter (followed by a colon) or printer name (no colon).

<cNetPath>
Network pathspec to a shared volume or a printer device. May be a null 
string. If so, any current redirection for the device is canceled. (In 
this case, it is not necessary to specify a device type or password.)

<nType>
Device type.
              3 = Printer
              4 = Disk. (default)

<cPassword>
Password. Must be specified only if the link requires a password. If a 
password is specified, then a device type must also be specified.


Returns

If <cNetPath> is omitted (that is, only one parameter), returns the 
network path established for the device.

A null string is returned if no redirection was established for the 
device, or if the device is invalid.


Description

NetLib attempts to redirect the specified device to the specified 
network path. If an invalid device or netpath is specified, or if a 
password is incorrect or omitted (where a password is required), then 
no action is taken. Any prior redirection for the device is canceled in 
any event.

Note   This function will work only on networks running Banyan 
VINES, NetBIOS, or NetBIOS emulation.  While N_REDIRECT() can be used 
in the NetWare environment, N_MAPDRIVE() is more suited to the NetWare 
environment.

The file NETBIOS.CH has various definitions for use with N_REDIRECT().

Console operator note  Redirections established by the program with 
N_REDIRECT() might not be displayed when listed by console command.


Examples
// Map drive F to remote directory \\SYS\USER\APPL
N_REDIRECT('F:' , '\\FS1\SYS', 4, 'mypassword')
? N_REDIRECT('F:')
\\FS1\SYS

// Cancel redirection for LPT2
N_REDIRECT('LPT2' , '', 3)


Files

NETBIOS.CH



See Also: N_AREDIRECT() N_MAPDRIVE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson