|
Home > Archive > 70-218 > November 2003 > Scanning For Presence Of Offline Folder
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Scanning For Presence Of Offline Folder
|
|
| kelvin1211 2003-11-13, 12:10 pm |
| Dear fellow admins,
Need some advice here. What would be the best way to check whether each user in my company has a Offline folder configured for their Outlook?
Is there any script or tool that can be used to scan for the presence of OSTs in the currently logged on user account?
On another note, I need some help here. What is the wildcard to copy a file into ONLY the userprofile of the current logged in user on a PC? I thought it was %userprofile% but doesnt seem to work.
Do let me have your opinions on these.
Cheers
Kelvin | |
| Tarzanboy 2003-11-19, 7:26 pm |
| %userprofile% works in batch scripting, something I rarely use, but have only had luck using it to change directories.
code:
cd "%userprofile%\My Documents\"
xcopy \\server\share\test.doc
Using WSH there is the SpecialFolders property that might serve the purpose.
code:
dim WS, Favs, fso
set WS = Wscript.CreateObject("Wscript.Shell")
Docs = WS.SpecialFolders("MyDocuments")
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFile "\\server\share\file.doc", Docs
Cheers,
TB |
|
|
|
|