From: Kenneth A. Larsen on

"Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message news:...
>
> "Saucer Man" <saucerman(a)nospam.com> wrote in message
> news:4c34cd29$0$2403$cc2e38e6(a)news.uslec.net...
>>
>> "Tom Lavedas" <tglbatch(a)verizon.net> wrote in message
>> news:bd2c8f61-01d5-4e25-b12b-ad79c2217d02(a)w12g2000yqj.googlegroups.com...
>>
>> OK. That says the final write is performed, which leaves my initial
>> guess as the next most likely thing to try. That is, ...
>>
>> writelog "################ End Login Script ###################"
>>
>> Set objNetwork = Nothing
>> Set objDrives = Nothing
>> Set objComputer = Nothing
>> Set objShell = Nothing
>> Set objFileSystem = Nothing
>> ' Added line of code
>> objLogFile.close
>> '
>> Set objLogFile = Nothing
>> 'Msgbox "Logon Script Complete",,"Mapper"
>> WScript.Quit
>>
>> I don't know why the CLOSE would be needed, but it can't hurt and just
>> maybe ...
>> _____________________
>> Tom Lavedas
>>
>>
>>
>> I added the above line but it didn't help. Then it occured to me that it
>> is probably Windows 7 saying "access denied" because of UAC..not because
>> the script was not quitting. I opened Notepad as Administrator and then
>> I was able to make changes to the log and save it without a problem.
>>
>> Thank you both for all your help and efforts!
>
> You are welcome for all help and efforts. And you are absolutely right!
> Script doesn't quit on Windows 7.
>>
>>
>
>