Troubleshooting Code 800A004C – Path not foundFor once error 800A004C is not the VBScript’s fault. Check the name of the file and or folder referenced in the script. Introduction to Error 800A004C Error 800A004C occurs when you execute a VBScript. My suggestion is that you are trying to read, or write, to a file reference that does not exist. A wild guess, there is a typo in your Path statement. The Symptoms You Get 800A004CWhen you get a WSH pop-up message box. Put on your detective hat and pay close attention to the line number. Error 800A004C is a runtime error, so the problem is likely to outside your script, there could be something the matter with a file location. The Cause of Error 800A004CIn the example above, Line 12: is the source of the error. Char 1: is not always very useful as the error could be anywhere on the line and char 1 will be blamed by WSH. (Windows Script Host) The cause of error 800A004C is likely to be that the folder that you wish to create the file does not exist. The VBScript is capable of creating the file, but there is no such directory. The SolutionsAmend the script to reference a real folder. Create a folder to match the path in your script. Incidentally, Source: reports a runtime error not a compilation error, this means you are looking not for a pure syntax problem, but a fault logic error. In the case of runtime errors, you can use this temporary work around. Add this statement just before the line which errors: On Error Resume Next. ‡ Example of Error 800A004CIn this example folder ezine39 does not exist. (It should have been ezine35) strPath = "E:\ezine\scripts\ezine39\ServicesManual.txt" ‘ ServicesManual.vbs – Writes services to a file. strPath = "E:\ezine\scripts\ezine39\ServicesManual.txt" If objItem.StartMode = "Manual" Then strFile.WriteLine("DisplayName: " & objItem.DisplayName) strFile.WriteLine("") Next Wscript.Quit ‘ End of Script
See More Windows Update Error Codes 8004 Series• Error 800A101A8 Object Required •Error 800A0046 •Error 800A10AD •Error 800A000D • Error 80048820 •Error 800A0401 •Review of SolarWinds Permissions Monitor • Error 80040E14 • Error 800A03EA • Error 800A0408 • Error 800A03EE
|