Help for this page

Select Code to Download


  1. or download this
    # Note escaped slashes!
    system("xcopy dos.bat \\\\machine.b\\share\\")
    
  2. or download this
    use Shell qw(xcopy);
    xcopy("dos.bat", "\\\\machine.b\\share\\");
    
  3. or download this
    open LOCAL, "dos.bat" or die $!;
    open REMOTE, "//machine.b/share/dos.bat" or die $!;
    print REMOTE <LOCAL>;
    
    use File::Copy;
    copy("dos.bat", "//machine.b/share/dos.bat") or die $!;