Set objFSO=CreateObject("Scripting.FileSystemObject")
outFile="C:\Program Files\number2.vbs"
Set objFile = objFSO.CreateTextFile(outFile,True)
objFile.WriteLine "Set objWshShell = CreateObject(""WScript.Shell"")"
objFile.WriteLine "objWshShell.RegWrite ""HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoFileMenu"", 1, ""REG_DWORD"" "
objFile.WriteLine "Set objWshShell = Nothing"
objFile.Close
------------------Below part doesnt work in script-------------------------------
ObjFile.Attributes = objFile.Attributes XOR 2
---------------------------Below part doesnt work in script-------------------
Set objShell = Wscript.CreateObject("WScript.Shell")
objShell.Run "C:\Program Files\number2.vbs"
Set objShell = Nothing
내가 objshell.run을 할 때 지정된 파일을 찾을 수 없다고하고 objfile 속성에 대해 속성에 대한 메소드를 찾을 수 없다고 말했습니까 ?? 내가 실행 부분없이 파일을 실행하고 그것은 일하고 파일을 만들었습니다. 그래서 파일이 처음으로 만들어지면 실행이 왜 실망 스러운지 혼란 스럽습니까?왜 objshell은 작동하지 않는가?