5/28/2023 0 Comments Compare folders cmd![]() :: the below loop assumes both Trees are under the same parent. Powershell -command "(Get-Content %Resource%\%Object_List%) -replace '/','\' | set-content %Resource%\%Object_List%" Powershell -command "(Get-Content %Resource%\%Object_List%) -replace '%remove_parent_prefix%/','' | set-content %Resource%\%Object_List%" Set remove_parent_prefix=%remove_parent_prefix:\=/% Set remove_parent_prefix=%environment%\%Tree_A% Powershell -command "(get-content %Resource%\%Object_List%) | Foreach | Set-Content %Resource%\%Object_List%" ![]() Powershell -command "(Get-Content %Resource%\%Object_List%) -replace '\\','/' | set-content %Resource%\%Object_List%" :: if the Trees are not under the same parent, then comment out the below 6 lines :: in the object list, remove the parent tree from the path If !object_type!=file echo %%p > %Resource%\%Object_List% :: Next, remove the objects that are directoriesįor /f "tokens=*" %%p in (%Resource%\Complete_Tree_A_Object_List.txt) do (ĭir /a:d /b %%p 2>nul >nul
0 Comments
Leave a Reply. |