How to script tasks in Windows Explorer

R

RLN

(RE: WinXP Professional SP3)

My Outlook .PST files are encrypted here at work and I regularly back
them up using Synctoy. Synctoy requires that I un-encrypt them first
each time before backing up.
Can someone show me a code sample of how to perform the following
manual steps using VBscript or some such tool?

Here are the steps:
<begin steps>
-Launch Explorer
-Choose folder "Documents and Settings\OutlookData"
-right click this folder and choose "Properties"
-From the Properties popup box:
-uncheck "Read-Only" if it is checked.
-uncheck "Hidden" if it is checked.
Click "Advanced" button.
(from "Advanced Attributes" popup box)
-uncheck "Encrypt contents to secure data".
-click OK
(back at Properties popup)
-click "Apply".
-on the "confirm" message, click OK.
-click OK on Properties Window.
<end steps>

Thanks.
 
D

David H. Lipman

From: "RLN" <[email protected]>


(RE:: WinXP Professional SP3)

| My Outlook .PST files are encrypted here at work and I regularly back
| them up using Synctoy. Synctoy requires that I un-encrypt them first
| each time before backing up.
| Can someone show me a code sample of how to perform the following
| manual steps using VBscript or some such tool?

| Here are the steps:
| <begin steps>
| -Launch Explorer
| -Choose folder "Documents and Settings\OutlookData"
| -right click this folder and choose "Properties"
| -From the Properties popup box:
| -uncheck "Read-Only" if it is checked.
| -uncheck "Hidden" if it is checked.
| Click "Advanced" button.
| (from "Advanced Attributes" popup box)
| -uncheck "Encrypt contents to secure data".
| -click OK
| (back at Properties popup)
| -click "Apply".
| -on the "confirm" message, click OK.
| -click OK on Properties Window.
| <end steps>

| Thanks.

Un-crypt ? --> decrypt

You really don't need to change attributes. By definition a PST can NOT be Read-Only and
it is irrelevaent if it is hiden, all you need to do is decrypt.


PrepBack.BAT
----------------

Echo Off
attrib -r -h "C:\Documents and Settings\LOGIN_NAME\Application Data\Microsoft\Outlook\*.*"
cipher /d /a "C:\Documents and Settings\LOGIN_NAME\Application
Data\Microsoft\Outlook\*.pst"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top