Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT
'This will copy all files to one level up 'option explicit dim SourceFolder, DestFolder ,fso, f Set fso = CreateObject("Scripting.FileSystemObject") SourceFolder = "C:\aaa\" DestFolder = "C:\bbb\" Set f = fso.GetFolder(SourceFolder) For Each file In f.Files fso.MoveFile SourceFolder & file.Name, DestFolder & file.name Next For Each subdir in f.SubFolders Set f = fso.GetFolder(SourceFolder & subdir.name) For Each file In f.Files fso.copyFile SourceFolder & subdir.name & "\" & file.Name, DestFolder & file.name Next Next msgbox "Finished!!!"
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.