Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Tue Feb 24, 2004 4:26 pm Post subject: Copy/Store files on a Shared Drive |
|
|
I want to store/copy files to a password protected, shared file on windows XP.
The folder is shared out and needs a username and password to gain access to the folder.
It can be accessed via \\192.168.x.x\update\users
Anyone any ideas on how to do this, i do not want to map a drive on the local users machine, just copy data, files to this folder.
I have tried tommys vdsinet.dll but i keep getting errors !
Text Script 1:
| Code: |
#define command,net
#define function,net
external vdsinet.dll,Public Freeware Key|90257236
%A = \\192.168.1.20\update\users
shell open,%A
NET NETC,USERNAME,testuser
NET NETC,PASSWORD,password
net netc,remotename,%A
NET NETC,LOCALNAME,W:
NET NETC,CONNECT
list create,1
list add,1,Life is life @datetime(dd/mm/yy - t)
list savefile,1,%A\nathan.log
list close,1
NET NETC, DISCONNECT |
Test Script 2
| Code: |
#define command,net
#define function,net
external vdsinet.dll,Public Freeware Key|90257236
%A = \\192.168.1.20\update\users
shell open,%A
NET NETC,USERNAME,testuser
NET NETC,PASSWORD,password
net netc,remotename,%A
NET NETC,LOCALNAME,W:
list create,1
list add,1,Life is life @datetime(dd/mm/yy - t)
list savefile,1@path(%0)nathan.log
list close,1
file copy,@path(%0),%a\nathan.log
|
|
|