Re: Query folder backup operator
- From: Juan <jvaleromtnez@xxxxxxxxx>
- Date: Wed, 29 Apr 2009 00:56:49 -0700 (PDT)
On Apr 28, 11:40 pm, "Pegasus [MVP]" <n...@xxxxxxxxxxxxx> wrote:
"Juan" <jvaleromt...@xxxxxxxxx> wrote in message
news:2ae9a81a-e584-4cf5-8651-f670336f3378@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thank you again Pegasus.
I know that the script works fine, but, as you say, my problem is with
the protected folders. I need to access every file in the computer,
regardless of the folder permissions. As I said in my previous
message, if I used the robocopy resource kil application, I could
access the folder content. I only need to list every files, I don't
need to access the file content.
Using the processmonitor application, I've noticed that robocopy
access the folder using the "open for backup" option. My question
is... Could I use the "open for backup" option in a vbscript? How
could I specify this option?.
Again, thank you very much for your help.
Regards
===================
WMI should be able to do it but I can't quite get it to work:
Set oWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Backup)}!\\.\root\cimv2")
Set oFolder = oWMIService.Get("Win32_Directory.Name='e:\System Volume
Information'")
RetCode = oFolder.copy("c:\Test")
See also here:http://msdn.microsoft.com/en-us/library/aa392758(VS.85).aspx.
Post again if/when you find the solution!
WMI may solve my problem, but I have to control the performance of the
script, I mean. the script must be executed with the lowest priority,
so the user mustn't be concious that the script is running.
If I used WMI, the query to search files (WQL) would be executed
without the control of my script, so the query could take longer and
influence the performance of the computer.
Thank you very much for your help. If I found the solution, I would
post it.
.
- Prev by Date: Script to repoint users mydocs cache on local PC
- Next by Date: Re: How to find the operating system bit (x86/x64/ia64)
- Previous by thread: Script to repoint users mydocs cache on local PC
- Next by thread: Script (s) to help with file security audit
- Index(es):
Relevant Pages
|