vbscript - VBS FileSystemObject.DeleteFolder Path does not exists, yet FileSystemObject.FolderExists is true -
i'm close going insane. have configuration of code in vbs , throws error should logically impossible.
check code: (you need @ least 10 reputation post images. sure helpful.) http://i.stack.imgur.com/jjndm.png
if folder revfolder exists, (force) delete it. means if folder not exist, no deletefolder executed. literally have folder in front of me, it's there, can see it. created same code few lines up. folderexists returns true folder exists. yet throws error "path not found".
what going on? must bug in vbs, right?
.folderexists
tolerates spurious "\", .deletefolder
doesn't:
>> wscript.echo gofs.folderexists("c:\documents , settings\eh\30643986\") >> gofs.deletefolder "c:\documents , settings\eh\30643986\" >> -1 error number: 76 error description: path not found >> gofs.deletefolder "c:\documents , settings\eh\30643986" >> wscript.echo gofs.folderexists("c:\documents , settings\eh\30643986") >> 0 >>
Comments
Post a Comment