Results 1 to 1 of 1
2006-07-07, 16:11 #1
- Join Date
- Jan 2002
- Brookings, South Dakota, USA
- Thanked 0 Times in 0 Posts
move files on remote computer (vbscript)
<P ID="edit" class=small>(Edited by gdrezek on 07-Jul-06 12:11. forgot the attachment)</P>Hi All,
(Please move this if there is a more relevant forum for it)
Some time ago I posted a request (<post#=573,898>post 573,898</post#>) on how to save (move) a file with elevated permissions. My whole point in doing so was to keep files out of reach of bored, inquisitive chemistry students who decide to explore the chem labs' computers and its' server. The person who designed the chem lab software (a chemistry professor) thought that security by obfuscation would be sufficient. I wanted to be able to move the files out of their reach, without too much editing on the original code. Attached as a text file is the code with comments interspersed.
I used Windows Management Instrumentation (WMI), Web-based Enterprise Management (Wbem) in this case as I needed elevated permissions as I was moving files between folders (and drives) on a remote machine. This works, but is kinda kludgy.
OK, now to the question..........Is it possible to transfer files between machines using the WMI/Wbem commands?...or do I have to shift gears and find something else? I know there is System.Management which can be used with .NET, but I haven't found any methods which would do this.
"Those who dance are considered insane by those who can't hear the music" - George Carlin