By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,434 Members | 2,902 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,434 IT Pros & Developers. It's quick & easy.

how copy file to remote pc using default share

P: n/a
I want install software on PC in my local network.
First I want copy file to the PC through default share like c$ or d$ on the
PC.
Then install the software through wmi.
I have the administrator and password of every PC.
How can I do this.
Jan 23 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Using ASP.NET ?

--Daniel
http://staff.newtelligence.com/danielf/


-----Original Message-----
From: Standist [mailto:re***@jnpc.com.cn]
Posted At: Monday, January 23, 2006 10:05 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: how copy file to remote pc using default share
Subject: how copy file to remote pc using default share

I want install software on PC in my local network.
First I want copy file to the PC through default share like c$ or d$ on
the
PC.
Then install the software through wmi.
I have the administrator and password of every PC.
How can I do this.
Jan 23 '06 #2

P: n/a
yes of course,so I post here.
"Daniel Fisher(lennybacon)" <in**@removethis-lennybacon.com>
??????:001901c62018$162f2450$1401010a@moseisley...
Using ASP.NET ?

--Daniel
http://staff.newtelligence.com/danielf/


-----Original Message-----
From: Standist [mailto:re***@jnpc.com.cn]
Posted At: Monday, January 23, 2006 10:05 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: how copy file to remote pc using default share
Subject: how copy file to remote pc using default share

I want install software on PC in my local network.
First I want copy file to the PC through default share like c$ or d$ on
the
PC.
Then install the software through wmi.
I have the administrator and password of every PC.
How can I do this.

Jan 23 '06 #3

P: n/a
I want publish this function as a webservice so using asp.net.
"Daniel Fisher(lennybacon)" <in**@removethis-lennybacon.com>
??????:001901c62018$162f2450$1401010a@moseisley...
Using ASP.NET ?

--Daniel
http://staff.newtelligence.com/danielf/


-----Original Message-----
From: Standist [mailto:re***@jnpc.com.cn]
Posted At: Monday, January 23, 2006 10:05 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: how copy file to remote pc using default share
Subject: how copy file to remote pc using default share

I want install software on PC in my local network.
First I want copy file to the PC through default share like c$ or d$ on
the
PC.
Then install the software through wmi.
I have the administrator and password of every PC.
How can I do this.

Jan 23 '06 #4

P: n/a
Any idea about this?
"Standist" <re***@jnpc.com.cn> 写入消息新闻:OO**************@TK2MSFTNGP09.phx.gbl ...
I want install software on PC in my local network.
First I want copy file to the PC through default share like c$ or d$ on
the PC.
Then install the software through wmi.
I have the administrator and password of every PC.
How can I do this.

Jan 24 '06 #5

P: n/a
Standist wrote:
Any idea about this?
"Standist" <re***@jnpc.com.cn> 写入消息新闻:OO**************@TK2MSFTNGP09.phx.gbl ...
I want install software on PC in my local network.
First I want copy file to the PC through default share like c$ or d$ on
the PC.
Then install the software through wmi.
I have the administrator and password of every PC.
How can I do this.



I do something similar.

for the file copy, I p/invoke WNetAddConnection2A to authenticate to the
remove share. I copy the file using std. System.IO.File.Copy. Then use
the appropriate System.Management WMI function to start the install
process on the remote computer. Be sure to use the proper automatic
install command line switches.

I hope this helps.
--
Jay R. Wren

[DllImport("mpr.dll")]
public static extern int WNetAddConnection2A(
[MarshalAs(UnmanagedType.LPArray)] NETRESOURCEA[] lpNetResource,
[MarshalAs(UnmanagedType.LPStr)] string lpPassword,
[MarshalAs(UnmanagedType.LPStr)] string UserName,
int dwFlags);
Jan 25 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.