use Shell qw(xcopy); xcopy("dos.bat", "\\\\machine.b\\share\\");