<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Easy Photo Sync For WHS</title> <atom:link href="http://www.mswhs.com/2007/10/easy-photo-sync-for-whs/feed/" rel="self" type="application/rss+xml" /><link>http://www.mswhs.com/2007/10/easy-photo-sync-for-whs/</link> <description></description> <lastBuildDate>Tue, 22 May 2012 02:23:14 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Carlos Antunez</title><link>http://www.mswhs.com/2007/10/easy-photo-sync-for-whs/comment-page-1/#comment-7994</link> <dc:creator>Carlos Antunez</dc:creator> <pubDate>Sat, 16 Jan 2010 02:34:43 +0000</pubDate> <guid
isPermaLink="false">http://mswhs.com/2007/10/31/easy-photo-sync-for-whs/#comment-7994</guid> <description>If anything other than JPG file on the folder you want to syncronize PhotoSync Beta1 and Beta2 will not work. However I have put together an WSF file that will do this job for you. Let me know what you think, here is the code:&#039;Option Explicit
&#039;On Error Resume Next&#039;USER ACCEPTANCE - SCRIPT DESCRIPTION
intAnswer = Msgbox(&quot;This script lets you select a directory&quot; &amp; vbcrlf &amp; _
&quot;and asks you which type of files you want to keep in that directory.&quot;  &amp; vbcrlf &amp; _
&quot;It will then proceed to remove all files (exept the ones you want to keep) &quot; &amp; vbcrlf &amp; _
&quot;and will put them on a directory called removed_files.&quot;  &amp; vbcrlf &amp; _
&quot;Do you understand and wish to continue?&quot;,vbYesNo,&quot;USER ACCEPTANCE&quot;)
If intAnswer = vbYes ThenSet WshShell = WScript.CreateObject(&quot;WScript.Shell&quot;)
Set objFSO = WScript.CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set strRootPath = objFSO.GetFolder(WshShell.CurrentDirectory)&#039;SETUP LOG FILE.
strLogFile = &quot;move_files.log&quot;
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set objLogFile = objFSO.OpenTextFile(strLogFile, ForWriting, True)
objLogFile.WriteLine &quot;Generated on: &quot; &amp; Date &amp; &quot; &quot; &amp; Time
objLogFile.WriteLine &quot;&quot;&#039;FILE EXTENSION FROM USER INPUT
strFileExtension = InputBox(&quot;Please type the file extension of the files you want to keep (i.e. JPG).&quot;,&quot;Extension of files to keep&quot;)&#039;SETUP FILE BROWSER AND DESTINATION.
Const MY_COMPUTER   = &amp;H11&amp;
Const WINDOW_HANDLE = 0
Const NO_OPTIONS = 0
intAnswer = vbNoDo While intAnswer = vbNo
Set objShell = CreateObject(&quot;Shell.Application&quot;)
Set objFolder = objShell.BrowseForFolder (WINDOW_HANDLE, &quot;Select a folder or type the full path to folder:&quot;, &amp;H10&amp;, objShell.Namespace( MY_COMPUTER ))If objFolder Is Nothing Then
strSourceFolder = &quot;&quot;
intAnswer = vbYes
Else
Set objFolderItem = objFolder.Self
strSourceFolder = objFolderItem.Path&#039;USER VERIFICATION
intAnswer = Msgbox(&quot;You selected: &quot; &amp; strSourceFolder &amp; vbcrlf &amp; _
&quot;Is this the directory from which you want to remove all files &quot; &amp; vblf &amp; _
&quot;that do not match the file extension &quot; &amp; strFileExtension &amp; &quot; ? &quot;,vbYesNo,&quot;User Verification&quot;)End If
Loop&#039;START FILE COUNTER
intFileCounter = 0
intFolderCOunter = 0
intRemoveFileCounter = 0&#039;VERIFY USER SELECTION
If objFSO.FolderExists(strSourceFolder) Then&#039;DECLARE DESTINATION FOLDER
strDestinationFolder =  strSourceFolder &amp; &quot;\removed_files&quot;&#039;CREATE SOURCE FOLDER and SUBFOLDERS LIST
Set objFolders = objFSO.GetFolder(strSourceFolder)
Set objSubfolders = objFolders.Subfolders&#039;CREATE DESTINATION FOLDER
If Not objFSO.FolderExists(strDestinationFolder) Then
objFSO.CreateFolder(strDestinationFolder)
&#039;makeMsgBox = MsgBox(&quot;Created&quot; &amp; strSourceFolder &amp; &quot;\remove_file\&quot;)
End If&#039;WRITE TO LOG FILE
objLogFile.WriteLine &quot;Looped Thru:&quot; &amp; vbrc&#039;CREATE FILE LIST FROM MAIN FOLDER
Set ArrMainFiles = objFSO.GetFolder(strSourceFolder).Files&#039;LOOP THROUGH LIST
For Each File In ArrMainFilesIf Not UCase(Right(File.name,Len(strFileExtension))) = strFileExtension  Then&#039;RENAME DUPLICATE FILES
If objFSO.FileExists(strDestinationFolder &amp; File.name) Then
makeMsgBox = MsgBox(&quot;file: &quot; &amp; strSourceFolder &amp; File.name &amp; &quot; exists already!, renaming to&quot; &amp; strDestinationFolder &amp; &quot;\&quot; &amp; &quot;copy_&quot; &amp; File.name)
objFSO.MoveFile strSourceFolder &amp; &quot;\&quot; &amp; File.name, strDestinationFolder &amp; &quot;\&quot; &amp; &quot;copy_&quot; &amp; File.nameIf Err Then
objLogFile.WriteLine &quot;File NOT moveded (&quot; &amp; Err.Number &amp; &quot;: &quot; &amp; Err.Description &amp; &quot;): &quot; &amp; objFile.Name &amp; &quot; to &quot; &amp; strDestinationFolder &amp; strChildFolderName
End If&#039;MOVE ALL OTHER FILE TYPES to the REMOVE_FILES folder
Else&#039;CREATE SUBFOLDERS IN DESTINATION FOLDER
If Not objFSO.FolderExists(strDestinationFolder &amp; &quot;\&quot; &amp; objFSO.GetExtensionName(File.Name)) Then
objFSO.CreateFolder(strDestinationFolder &amp; &quot;\&quot; &amp; objFSO.GetExtensionName(File.Name))
End IfmakeMsgBox = MsgBox(&quot;Moving file: &quot; &amp; strSourceFolder &amp; File.name &amp; vbcrlf &amp; &quot; into to &quot; &amp; strDestinationFolder &amp; &quot;\&quot; &amp; objFSO.GetExtensionName(File.Name) &amp; &quot;\&quot;)
objFSO.MoveFile strSourceFolder &amp; &quot;\&quot;&amp; File.name, strDestinationFolder &amp; &quot;\&quot; &amp; objFSO.GetExtensionName(File.Name) &amp; &quot;\&quot;If Err Then
objLogFile.WriteLine &quot;Other Files Types could not get moveded (&quot; &amp; Err.Number &amp; &quot;: &quot; &amp; Err.Description &amp; &quot;): &quot; &amp; objFile.Name &amp; &quot; to &quot; &amp; strDestinationFolder &amp; strChildFolderName
Else
intRemoveFileCounter = intRemoveFileCounter + 1
End If
End If&#039;REPORT ERROR
Else
&#039;objLogFile.WriteLine &quot;File IGNORED (incorrect file extension): &quot; &amp; objFile.Name
End IfintFileCounter = intFileCounter + 1
Next
&#039;END OF LOOP THROUGH LISTIf Err Then
objLogFile.WriteLine &quot;File NOT deleted (&quot; &amp; Err.Number &amp; &quot;: &quot; &amp; Err.Description &amp; &quot;): &quot; &amp; File.Name &amp; &quot; to &quot; &amp; strDestinationFolder &amp; strSubFolderPath
Else
objLogFile.WriteLine strSubFolderPath
End If&#039;END OF MAIL FOLDER&#039;LOOP TRHOUGH EACH SUBFOLDER
For Each Subfolder In objSubfolders
&#039;makeMsgBox = MsgBox(&quot;In subfolder loop&quot;)&#039;SKIP DESTINATION FOLDER
If Not Subfolder.name = &quot;removed_files&quot; Then
strSubFolderPath = strSourceFolder &amp; &quot;\&quot; &amp; Subfolder.name &amp; &quot;\&quot;
&#039;makeMsgBox = MsgBox(strSubFolderPath)&#039;CREATE FILE LIST
Set ArrFiles = objFSO.GetFolder(strSubFolderPath).Files&#039;LOOP THROUGH LIST
For Each File In ArrFilesIf Not UCase(Right(File.name,Len(strFileExtension))) = strFileExtension  Then&#039;RENAME DUPLICATE FILES
If objFSO.FileExists(strDestinationFolder &amp; File.name) Then
makeMsgBox = MsgBox(&quot;file: &quot; &amp; strSubFolderPath &amp; File.name &amp; &quot; exists already!, renaming to&quot; &amp; strDestinationFolder &amp; &quot;\&quot; &amp; &quot;copy_&quot; &amp; File.name)
objFSO.MoveFile strSubFolderPath &amp; File.name, strDestinationFolder &amp; &quot;\&quot; &amp; &quot;copy_&quot; &amp; File.nameIf Err Then
objLogFile.WriteLine &quot;File NOT moveded (&quot; &amp; Err.Number &amp; &quot;: &quot; &amp; Err.Description &amp; &quot;): &quot; &amp; objFile.Name &amp; &quot; to &quot; &amp; strDestinationFolder &amp; strChildFolderName
End If&#039;MOVE ALL OTHER FILE TYPES to the REMOVE_FILES folder
Else&#039;CREATE SUBFOLDERS IN DESTINATION FOLDER
If Not objFSO.FolderExists(strDestinationFolder &amp; &quot;\&quot; &amp; objFSO.GetExtensionName(File.Name)) Then
objFSO.CreateFolder(strDestinationFolder &amp; &quot;\&quot; &amp; objFSO.GetExtensionName(File.Name))
End IfmakeMsgBox = MsgBox(&quot;Moving file: &quot; &amp; strSubFolderPath &amp; File.name &amp; vbcrlf &amp; &quot; into to &quot; &amp; strDestinationFolder &amp; &quot;\&quot; &amp; objFSO.GetExtensionName(File.Name) &amp; &quot;\&quot;)
objFSO.MoveFile strSubFolderPath &amp; File.name, strDestinationFolder &amp; &quot;\&quot; &amp; objFSO.GetExtensionName(File.Name) &amp; &quot;\&quot;If Err Then
objLogFile.WriteLine &quot;Other Files Types could not get moveded (&quot; &amp; Err.Number &amp; &quot;: &quot; &amp; Err.Description &amp; &quot;): &quot; &amp; objFile.Name &amp; &quot; to &quot; &amp; strDestinationFolder &amp; strChildFolderName
Else
intRemoveFileCounter = intRemoveFileCounter + 1
End If
End If&#039;REPORT ERROR
Else
&#039;objLogFile.WriteLine &quot;File IGNORED (incorrect file extension): &quot; &amp; objFile.Name
End IfintFileCounter = intFileCounter + 1
Next
&#039;END OF LOOP THROUGH LISTIf Err Then
objLogFile.WriteLine &quot;File NOT deleted (&quot; &amp; Err.Number &amp; &quot;: &quot; &amp; Err.Description &amp; &quot;): &quot; &amp; File.Name &amp; &quot; to &quot; &amp; strDestinationFolder &amp; strSubFolderPath
Else
objLogFile.WriteLine strSubFolderPath
End IfintFolderCounter = intFolderCounter + 1
End If
&#039;END SKIP DESTINATION FOLDERNext
&#039;END LOOP THROUGH EACH SUBFOLDERSSet objFolders = Nothing
Set objSubfolders = Nothing
Set ArrFiles = Nothing
Set ArrMainFiles = NothingmakeMsgBox = MsgBox(&quot;Finished!&quot;)&#039;MESSAGE FOR INVALID DIRECTORY
Elseif objFolder Is Nothing then
makeMsgBox = MsgBox( &quot;No directory was selected. No files where moved. Exiting the Script.&quot;)
objLogFile.WriteLine &quot;No directory was selected. No files where moved.&quot;
Else
makeMsgBox = MsgBox( &quot;The directory selected does not exist: &quot; &amp; strDestinationFolder)
objLogFile.WriteLine &quot;The directory selected does not exist): &quot; &amp; strDestinationFolder
End IfobjLogFile.WriteLine(vbcrlf)
objLogFile.WriteLine &quot;Scanned  a total of &quot; &amp; intFileCounter &amp; &quot; files and a total of &quot; &amp; intFolderCounter &amp; &quot; subfolders.&quot;
objLogFile.WriteLine &quot;Moved a total of &quot; &amp; intRemoveFileCounter &amp; &quot; files to the removed_files folder.&quot;&#039;CLOSING TASKS
objLogFile.Close
Set objLogFile = Nothing
Set objFSO = Nothing
Set WshShell = Nothing
Set objShell = Nothing
Set strRootPath = Nothing
WScript.QuitElse
makeMsgBox = MsgBox(&quot;Canceled. No files where move. Exiting the script.&quot;)
End If</description> <content:encoded><![CDATA[<p>If anything other than JPG file on the folder you want to syncronize PhotoSync Beta1 and Beta2 will not work. However I have put together an WSF file that will do this job for you. Let me know what you think, here is the code:</p><p>&#8216;Option Explicit<br
/> &#8216;On Error Resume Next</p><p>&#8216;USER ACCEPTANCE &#8211; SCRIPT DESCRIPTION<br
/> intAnswer = Msgbox(&#8220;This script lets you select a directory&#8221; &amp; vbcrlf &amp; _<br
/> &#8220;and asks you which type of files you want to keep in that directory.&#8221;  &amp; vbcrlf &amp; _<br
/> &#8220;It will then proceed to remove all files (exept the ones you want to keep) &#8221; &amp; vbcrlf &amp; _<br
/> &#8220;and will put them on a directory called removed_files.&#8221;  &amp; vbcrlf &amp; _<br
/> &#8220;Do you understand and wish to continue?&#8221;,vbYesNo,&#8221;USER ACCEPTANCE&#8221;)<br
/> If intAnswer = vbYes Then</p><p>Set WshShell = WScript.CreateObject(&#8220;WScript.Shell&#8221;)<br
/> Set objFSO = WScript.CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br
/> Set strRootPath = objFSO.GetFolder(WshShell.CurrentDirectory)</p><p>&#8216;SETUP LOG FILE.<br
/> strLogFile = &#8220;move_files.log&#8221;<br
/> Const ForReading = 1, ForWriting = 2, ForAppending = 8<br
/> Set objLogFile = objFSO.OpenTextFile(strLogFile, ForWriting, True)<br
/> objLogFile.WriteLine &#8220;Generated on: &#8221; &amp; Date &amp; &#8221; &#8221; &amp; Time<br
/> objLogFile.WriteLine &#8220;&#8221;</p><p>&#8216;FILE EXTENSION FROM USER INPUT<br
/> strFileExtension = InputBox(&#8220;Please type the file extension of the files you want to keep (i.e. JPG).&#8221;,&#8221;Extension of files to keep&#8221;)</p><p>&#8216;SETUP FILE BROWSER AND DESTINATION.<br
/> Const MY_COMPUTER   = &amp;H11&amp;<br
/> Const WINDOW_HANDLE = 0<br
/> Const NO_OPTIONS = 0<br
/> intAnswer = vbNo</p><p>Do While intAnswer = vbNo<br
/> Set objShell = CreateObject(&#8220;Shell.Application&#8221;)<br
/> Set objFolder = objShell.BrowseForFolder (WINDOW_HANDLE, &#8220;Select a folder or type the full path to folder:&#8221;, &amp;H10&amp;, objShell.Namespace( MY_COMPUTER ))</p><p> If objFolder Is Nothing Then<br
/> strSourceFolder = &#8220;&#8221;<br
/> intAnswer = vbYes<br
/> Else<br
/> Set objFolderItem = objFolder.Self<br
/> strSourceFolder = objFolderItem.Path</p><p> &#8216;USER VERIFICATION<br
/> intAnswer = Msgbox(&#8220;You selected: &#8221; &amp; strSourceFolder &amp; vbcrlf &amp; _<br
/> &#8220;Is this the directory from which you want to remove all files &#8221; &amp; vblf &amp; _<br
/> &#8220;that do not match the file extension &#8221; &amp; strFileExtension &amp; &#8221; ? &#8220;,vbYesNo,&#8221;User Verification&#8221;)</p><p> End If<br
/> Loop</p><p>&#8216;START FILE COUNTER<br
/> intFileCounter = 0<br
/> intFolderCOunter = 0<br
/> intRemoveFileCounter = 0</p><p>&#8216;VERIFY USER SELECTION<br
/> If objFSO.FolderExists(strSourceFolder) Then</p><p> &#8216;DECLARE DESTINATION FOLDER<br
/> strDestinationFolder =  strSourceFolder &amp; &#8220;\removed_files&#8221;</p><p> &#8216;CREATE SOURCE FOLDER and SUBFOLDERS LIST<br
/> Set objFolders = objFSO.GetFolder(strSourceFolder)<br
/> Set objSubfolders = objFolders.Subfolders</p><p> &#8216;CREATE DESTINATION FOLDER<br
/> If Not objFSO.FolderExists(strDestinationFolder) Then<br
/> objFSO.CreateFolder(strDestinationFolder)<br
/> &#8216;makeMsgBox = MsgBox(&#8220;Created&#8221; &amp; strSourceFolder &amp; &#8220;\remove_file\&#8221;)<br
/> End If</p><p> &#8216;WRITE TO LOG FILE<br
/> objLogFile.WriteLine &#8220;Looped Thru:&#8221; &amp; vbrc</p><p> &#8216;CREATE FILE LIST FROM MAIN FOLDER<br
/> Set ArrMainFiles = objFSO.GetFolder(strSourceFolder).Files</p><p> &#8216;LOOP THROUGH LIST<br
/> For Each File In ArrMainFiles</p><p> If Not UCase(Right(File.name,Len(strFileExtension))) = strFileExtension  Then</p><p> &#8216;RENAME DUPLICATE FILES<br
/> If objFSO.FileExists(strDestinationFolder &amp; File.name) Then<br
/> makeMsgBox = MsgBox(&#8220;file: &#8221; &amp; strSourceFolder &amp; File.name &amp; &#8221; exists already!, renaming to&#8221; &amp; strDestinationFolder &amp; &#8220;\&#8221; &amp; &#8220;copy_&#8221; &amp; File.name)<br
/> objFSO.MoveFile strSourceFolder &amp; &#8220;\&#8221; &amp; File.name, strDestinationFolder &amp; &#8220;\&#8221; &amp; &#8220;copy_&#8221; &amp; File.name</p><p> If Err Then<br
/> objLogFile.WriteLine &#8220;File NOT moveded (&#8221; &amp; Err.Number &amp; &#8220;: &#8221; &amp; Err.Description &amp; &#8220;): &#8221; &amp; objFile.Name &amp; &#8221; to &#8221; &amp; strDestinationFolder &amp; strChildFolderName<br
/> End If</p><p> &#8216;MOVE ALL OTHER FILE TYPES to the REMOVE_FILES folder<br
/> Else</p><p> &#8216;CREATE SUBFOLDERS IN DESTINATION FOLDER<br
/> If Not objFSO.FolderExists(strDestinationFolder &amp; &#8220;\&#8221; &amp; objFSO.GetExtensionName(File.Name)) Then<br
/> objFSO.CreateFolder(strDestinationFolder &amp; &#8220;\&#8221; &amp; objFSO.GetExtensionName(File.Name))<br
/> End If</p><p> makeMsgBox = MsgBox(&#8220;Moving file: &#8221; &amp; strSourceFolder &amp; File.name &amp; vbcrlf &amp; &#8221; into to &#8221; &amp; strDestinationFolder &amp; &#8220;\&#8221; &amp; objFSO.GetExtensionName(File.Name) &amp; &#8220;\&#8221;)<br
/> objFSO.MoveFile strSourceFolder &amp; &#8220;\&#8221;&amp; File.name, strDestinationFolder &amp; &#8220;\&#8221; &amp; objFSO.GetExtensionName(File.Name) &amp; &#8220;\&#8221;</p><p> If Err Then<br
/> objLogFile.WriteLine &#8220;Other Files Types could not get moveded (&#8221; &amp; Err.Number &amp; &#8220;: &#8221; &amp; Err.Description &amp; &#8220;): &#8221; &amp; objFile.Name &amp; &#8221; to &#8221; &amp; strDestinationFolder &amp; strChildFolderName<br
/> Else<br
/> intRemoveFileCounter = intRemoveFileCounter + 1<br
/> End If<br
/> End If</p><p> &#8216;REPORT ERROR<br
/> Else<br
/> &#8216;objLogFile.WriteLine &#8220;File IGNORED (incorrect file extension): &#8221; &amp; objFile.Name<br
/> End If</p><p> intFileCounter = intFileCounter + 1<br
/> Next<br
/> &#8216;END OF LOOP THROUGH LIST</p><p> If Err Then<br
/> objLogFile.WriteLine &#8220;File NOT deleted (&#8221; &amp; Err.Number &amp; &#8220;: &#8221; &amp; Err.Description &amp; &#8220;): &#8221; &amp; File.Name &amp; &#8221; to &#8221; &amp; strDestinationFolder &amp; strSubFolderPath<br
/> Else<br
/> objLogFile.WriteLine strSubFolderPath<br
/> End If</p><p> &#8216;END OF MAIL FOLDER</p><p> &#8216;LOOP TRHOUGH EACH SUBFOLDER<br
/> For Each Subfolder In objSubfolders<br
/> &#8216;makeMsgBox = MsgBox(&#8220;In subfolder loop&#8221;)</p><p> &#8216;SKIP DESTINATION FOLDER<br
/> If Not Subfolder.name = &#8220;removed_files&#8221; Then<br
/> strSubFolderPath = strSourceFolder &amp; &#8220;\&#8221; &amp; Subfolder.name &amp; &#8220;\&#8221;<br
/> &#8216;makeMsgBox = MsgBox(strSubFolderPath)</p><p> &#8216;CREATE FILE LIST<br
/> Set ArrFiles = objFSO.GetFolder(strSubFolderPath).Files</p><p> &#8216;LOOP THROUGH LIST<br
/> For Each File In ArrFiles</p><p> If Not UCase(Right(File.name,Len(strFileExtension))) = strFileExtension  Then</p><p> &#8216;RENAME DUPLICATE FILES<br
/> If objFSO.FileExists(strDestinationFolder &amp; File.name) Then<br
/> makeMsgBox = MsgBox(&#8220;file: &#8221; &amp; strSubFolderPath &amp; File.name &amp; &#8221; exists already!, renaming to&#8221; &amp; strDestinationFolder &amp; &#8220;\&#8221; &amp; &#8220;copy_&#8221; &amp; File.name)<br
/> objFSO.MoveFile strSubFolderPath &amp; File.name, strDestinationFolder &amp; &#8220;\&#8221; &amp; &#8220;copy_&#8221; &amp; File.name</p><p> If Err Then<br
/> objLogFile.WriteLine &#8220;File NOT moveded (&#8221; &amp; Err.Number &amp; &#8220;: &#8221; &amp; Err.Description &amp; &#8220;): &#8221; &amp; objFile.Name &amp; &#8221; to &#8221; &amp; strDestinationFolder &amp; strChildFolderName<br
/> End If</p><p> &#8216;MOVE ALL OTHER FILE TYPES to the REMOVE_FILES folder<br
/> Else</p><p> &#8216;CREATE SUBFOLDERS IN DESTINATION FOLDER<br
/> If Not objFSO.FolderExists(strDestinationFolder &amp; &#8220;\&#8221; &amp; objFSO.GetExtensionName(File.Name)) Then<br
/> objFSO.CreateFolder(strDestinationFolder &amp; &#8220;\&#8221; &amp; objFSO.GetExtensionName(File.Name))<br
/> End If</p><p> makeMsgBox = MsgBox(&#8220;Moving file: &#8221; &amp; strSubFolderPath &amp; File.name &amp; vbcrlf &amp; &#8221; into to &#8221; &amp; strDestinationFolder &amp; &#8220;\&#8221; &amp; objFSO.GetExtensionName(File.Name) &amp; &#8220;\&#8221;)<br
/> objFSO.MoveFile strSubFolderPath &amp; File.name, strDestinationFolder &amp; &#8220;\&#8221; &amp; objFSO.GetExtensionName(File.Name) &amp; &#8220;\&#8221;</p><p> If Err Then<br
/> objLogFile.WriteLine &#8220;Other Files Types could not get moveded (&#8221; &amp; Err.Number &amp; &#8220;: &#8221; &amp; Err.Description &amp; &#8220;): &#8221; &amp; objFile.Name &amp; &#8221; to &#8221; &amp; strDestinationFolder &amp; strChildFolderName<br
/> Else<br
/> intRemoveFileCounter = intRemoveFileCounter + 1<br
/> End If<br
/> End If</p><p> &#8216;REPORT ERROR<br
/> Else<br
/> &#8216;objLogFile.WriteLine &#8220;File IGNORED (incorrect file extension): &#8221; &amp; objFile.Name<br
/> End If</p><p> intFileCounter = intFileCounter + 1<br
/> Next<br
/> &#8216;END OF LOOP THROUGH LIST</p><p> If Err Then<br
/> objLogFile.WriteLine &#8220;File NOT deleted (&#8221; &amp; Err.Number &amp; &#8220;: &#8221; &amp; Err.Description &amp; &#8220;): &#8221; &amp; File.Name &amp; &#8221; to &#8221; &amp; strDestinationFolder &amp; strSubFolderPath<br
/> Else<br
/> objLogFile.WriteLine strSubFolderPath<br
/> End If</p><p> intFolderCounter = intFolderCounter + 1<br
/> End If<br
/> &#8216;END SKIP DESTINATION FOLDER</p><p> Next<br
/> &#8216;END LOOP THROUGH EACH SUBFOLDERS</p><p> Set objFolders = Nothing<br
/> Set objSubfolders = Nothing<br
/> Set ArrFiles = Nothing<br
/> Set ArrMainFiles = Nothing</p><p> makeMsgBox = MsgBox(&#8220;Finished!&#8221;)</p><p>&#8216;MESSAGE FOR INVALID DIRECTORY<br
/> Elseif objFolder Is Nothing then<br
/> makeMsgBox = MsgBox( &#8220;No directory was selected. No files where moved. Exiting the Script.&#8221;)<br
/> objLogFile.WriteLine &#8220;No directory was selected. No files where moved.&#8221;<br
/> Else<br
/> makeMsgBox = MsgBox( &#8220;The directory selected does not exist: &#8221; &amp; strDestinationFolder)<br
/> objLogFile.WriteLine &#8220;The directory selected does not exist): &#8221; &amp; strDestinationFolder<br
/> End If</p><p> objLogFile.WriteLine(vbcrlf)<br
/> objLogFile.WriteLine &#8220;Scanned  a total of &#8221; &amp; intFileCounter &amp; &#8221; files and a total of &#8221; &amp; intFolderCounter &amp; &#8221; subfolders.&#8221;<br
/> objLogFile.WriteLine &#8220;Moved a total of &#8221; &amp; intRemoveFileCounter &amp; &#8221; files to the removed_files folder.&#8221;</p><p>&#8216;CLOSING TASKS<br
/> objLogFile.Close<br
/> Set objLogFile = Nothing<br
/> Set objFSO = Nothing<br
/> Set WshShell = Nothing<br
/> Set objShell = Nothing<br
/> Set strRootPath = Nothing<br
/> WScript.Quit</p><p>Else<br
/> makeMsgBox = MsgBox(&#8220;Canceled. No files where move. Exiting the script.&#8221;)<br
/> End If</p> ]]></content:encoded> </item> <item><title>By: Video coming to Flickr &#124; TechBubble</title><link>http://www.mswhs.com/2007/10/easy-photo-sync-for-whs/comment-page-1/#comment-7993</link> <dc:creator>Video coming to Flickr &#124; TechBubble</dc:creator> <pubDate>Fri, 25 Dec 2009 17:24:27 +0000</pubDate> <guid
isPermaLink="false">http://mswhs.com/2007/10/31/easy-photo-sync-for-whs/#comment-7993</guid> <description>[...] I am using the slick PhotoSync for WHS (review) add-in to automatically share photos on my Windows Home Server with friends and family on Flickr. [...]</description> <content:encoded><![CDATA[<p>[...] I am using the slick PhotoSync for WHS (review) add-in to automatically share photos on my Windows Home Server with friends and family on Flickr. [...]</p> ]]></content:encoded> </item> <item><title>By: Upload Pics to Flickr Using the HP EX48x &#171; MS Windows Home Server</title><link>http://www.mswhs.com/2007/10/easy-photo-sync-for-whs/comment-page-1/#comment-7992</link> <dc:creator>Upload Pics to Flickr Using the HP EX48x &#171; MS Windows Home Server</dc:creator> <pubDate>Wed, 18 Feb 2009 15:50:00 +0000</pubDate> <guid
isPermaLink="false">http://mswhs.com/2007/10/31/easy-photo-sync-for-whs/#comment-7992</guid> <description>[...] to complete and for those with an existing&#160; EX47x model the article recommends using the PhotoSync Beta2 for Windows Home Server add-in as an alternative for the Flickr upload feature in HP Photo [...]</description> <content:encoded><![CDATA[<p>[...] to complete and for those with an existing&#160; EX47x model the article recommends using the PhotoSync Beta2 for Windows Home Server add-in as an alternative for the Flickr upload feature in HP Photo [...]</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 29/33 queries in 0.011 seconds using disk: basic
Object Caching 386/386 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: cdn4.mswhs.com

Served from: www.mswhs.com @ 2012-05-23 13:38:34 -->
