Re-2: Writing a file to another computer on the LAN?

boehmisch at animabit.de boehmisch at animabit.de
Wed May 4 12:22:58 EDT 2005


Hallo Malte, hi Chipp

The syntax on win machines for creating a path mapping from an UNC path to a ms drive letter:

net use q: \\server\share\path persistent:yes

If you need specifiing access rights you can do 

net use q: \\server\share\path mypassWrd /USER:maltedomain\malte persistent:yes

If the server/PC can be reached by the filesystem through TCP/IP (even over a VPN connection) you can use this syntax.

syntax cf. http://www.computerhope.com/nethlp.htm (or just type "net use /?")

in runrev:
set the hideConsoleWindows to true
get shell("net use q: \\192.168.20.1\share1\path ") 
get shell("net use z: \\192.168.20.2\share2\path ")

Then you can put the file from q: to z: 

and after the session you could delete the mapping
set the hideConsoleWindows to true
get shell("net use q: /delete ")
get shell("net use z: /delete ")

for the next sessions.

if runrev cant do the copy just use xcopy
type "xcopy /?" on win

Greetings,
Franz

Mit freundlichen Grüßen
Franz Böhmisch
http://www.animabit.de
GF Animabit Multimedia Software GmbH
Tel +49 (0)8501-8538
Fax +49 (0)8501-8537
boehmisch at animabit.de

Original Message        processed by David InfoCenter 
Subject: Re: Writing a file to another computer on the LAN? (04-Mai-2005 17:19)
From:    chipp at chipp.com
To:      boehmisch at animabit.de


Hi Malte,

I would recommend creating a shared folder on the 'networked' drive, 
then trying to 'drag/drop' a file from your computer to it to make sure 
it works. If it does, then you can map it to a drive letter, and simply 
use the put URL form:

put URL "file:C:/test.txt" into URL "file:X:/test.txt"

HTH,

Chipp


More information about the use-livecode mailing list