I have made a few improvements and got it to work, but it just deletes the following in each of the .vbs logon files.
'objNetwork.MapNetworkDrive "N:", "blank"
I need it to delete this whole line that is where I am stuck now.
Const ForReading = 1 ' Open file read only
Const ForWriting = 2 '...
Hi I have loads of logon scripts which point to drives which aren't available any more.
So I need a VBScript which goes through each .vbs logon script and deletes a particular line.
I have created a text file c:\names.txt which points to where the .VBS logon files are located. so in the txt...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.