Advertisement
Guest User

Untitled

a guest
Mar 20th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. $location = "\\\\192.168.15.98\\digi";
  2. $user = "digi";
  3. $password = "digi";
  4. $letter = "M";
  5.  
  6. echo $command = "net use ".$letter.": \"".$location."\" ".$password." /user:".$user." /persistent:no>nul 2>&1";
  7. echo "<br />";
  8. system($command);
  9.  
  10. $row = scandir($letter.':\\資料夾');
  11.  
  12. if($row !== false){
  13.  
  14. foreach($row as $value){
  15.  
  16. echo $value.'<br />';
  17.  
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement