Hello,
I am trying to remove a series of registry keys using a VBS script but I am unable to delete the keys that have subkeys. Keys that do not have subkeys delete appropriately. Here is the section of code I am working with.
-------------------------------
Dim strComputer, objRegistry...
Hello,
I use the following macro to help our end users save emails messages as a .msg file in Outlook as an archive on our file server. The issue is that sometimes the Browse dialog box shows up behind Outlook which causes the users to think Outlook is hung. Can someone help me force the Browse...
Hello,
I've created an Outlook Macro that allows a user to selecte an email message, click a button to run my macro, and then select a location to save the email message as a .msg
The problem is that I am using the BrowseForFolder command and it does not allow a user to double click a shortcut...
Geates,
We've been testing this solution for a couple weeks now and I think it is pretty solid. I'll post the entire code so others can work with it.
Thanks!
------
Code
------
const ForAppending = 8
dim intRecursionLevel
set objFSO = CreateObject("Scripting.FileSystemObject")
set objShell =...
Geates,
Sorry to be such a pain, but it's getting closer.
It is displaying the correct paths now, however it is displaying them multiple times. It appears multiple subsubfolders are causing a log event which logs several of the same folder.
The goal is if any file in any of the...
Hi Geates,
I too tried the GetParentFolderName parameter but it is not working either. I am still receiving tons of subsubfolders in my log. I'll continue to investigate.
--------------
Current Script
--------------
const ForAppending = 8
set objFSO =...
I've been trying to make the correct modifications, but havent gotten there yet. Thanks for the help. I'll try to explain better.
ParentFolder
SubFolder1
SubSubFolder1
SubSubFolder2
SubSubFolder3
SubFolder2
SubSubFolder1
SubSubFolder2
SubFolder3...
Thank you for the reply Geates. I updated the script but the output is not correct. It is displaying subfolders of the subfolders which I do not need to know. I just care about the subfolders of the parent.
--------------
Current Script
--------------
const ForAppending = 8
set objFSO =...
Geates...I was hoping not to have to bother you again :)
Your script works well most of the time but I'd really like to get rid of defining the number of /s its looking for. I'd like it to look recursively all the way down the Subfolders.
Additionally, it will sometimes log false positives...
Hello,
I am in need of a script that recursively looks through a folder tree, determines if any files in a subfolder have been modified in the last 180 days, and then logs the subfolder if not. This script will be used for archiving data.
Example:
Parent Folder
SubFolder 1
SubFolder...
Thank you for the reply Geates. I know this must be tough without true testing.
Yes, I want to look at the third level as that is the individual project level. Has anything under the third level changed in the last 6 months? If so, skip, if not, log.
Thank you Geates. I've created a new script with your code but there appears to be an issue. It is listing even more subfolders now. Here is the output.
-------------------------
Folder | Last Date Modified | Last Date Accessed
F:\CAD\00\2D CAD Blocks\People | 9/22/2009 4:47:18 PM | 9/22/2009...
Thank you Geates. I do appreciate your work. I made the change but have a question on the output.
--------
OUTPUT
Folder | Last Date Modified | Last Date Accessed
F:\CAD\03\M145137\Walker River\dwg | 9/22/2009 4:49:25 PM | 9/22/2009 4:49:25 PM
F:\CAD\04\M027106\DWG\FINAL SET | 9/22/2009...
Thanks Geates. I made your changes but could use one more small modification. I'm going to paste the code (I know you said not to but I made some changes) as I made the modfication of logging the results to a text file instead of moving the folder (my boss got a little scared of moving folders...
Geates,
Sorry to bother you again but I found a gotcha when I moved the script to the production environment.
In our production environment we have a parent folder and then subfolders below. The subfolders contain the projects so the script needs to check the folders in each subfolder and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.