Jump to content

php net use error


raphael75

Recommended Posts

I have this code to map two network drives:

<?php
$cmd = 'net use t: \\comp1\folder /u:dom\user pwd';
$cmd .= 'net use u: \\comp2\folder /u:dom\user pwd';

exec($cmd, $out, $ret);
?>

When exec() runs I get this:

 

System error 67 has occurred.

The network name cannot be found.

 

and $ret echos 2

 

I've done some research but I can't figure out what is causing System error 67. Any help is greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/287450-php-net-use-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.