Free for PREMIUM members
Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium
REM Define base or root directory to work in
REM Loop through all first level folders in base folder1
for /D %%A in ("%BaseDir%\*") do (
REM Loop through each subfolder to the first level folders
for /D %%B in ("%%A\*") do (
REM Move all files from the second level to the first level
move "%%B\*.*" "%%A"
REM Try to remove this second level folder now
Open in new window
Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.
sBaseFolder = "c:\temp\base"
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oBaseFolder = oFSO.GetFolder(sBaseFolder)
For Each oSubFolder In oBaseFolder.SubFolders
For Each oSubSubFolder In oSubFolder.SubFolders
oFSO.MoveFile oSubSubFolder & "\*.*", oSubFolder & "\"
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.