visual c++ - How to use WMI to copy a file from computer A to computer B using unmanaged VC++ -


i need have unmanaged vc++ program able copy file computer application on 1 of 100 other computers.

i have administrator access on each computer, won't problem.

it seems need use wmi this, having hard time getting work looking @ examples in: http://msdn.microsoft.com/en-us/library/windows/desktop/aa394558(v=vs.85).aspx

i curious of copyfile family of functions should work:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa363851(v=vs.85).aspx

this console application doesn't use mfc , isn't using atl.

is there example of how trying work on winxp , windows 7?

the easiest way start creating network connection wnetaddconnection2, copy file copyfile or copyfileex. when you're done, courteous use wnetcancelconnection2 remove network connection.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -