This command works at the command line and removes Streets and any sub direcrories
rd “F:PropertiesStreets” /s /q
I’m trying to run this command in VBA and getting rte 53 file not found on the following:
Call Shell(stAppName, 1)
Contents of stAppName is “rd F:PropertiesStreets /s /q”
What is the proper syntax?
Thanks, John
Sub Remove_Property_Folders() ChDrive "F" ' Make "F" the current drive. ChDir "F:Properties" ' Change current directory or folder Dim stAppName As String stAppName = "rd F:PropertiesStreets /s /q" 'rd "F:PropertiesStreets" /s /q Call Shell(stAppName, 1) MkDir "Streets" ' Make current directory or folder End Sub