lock folder (XP SP3)
.. open notepad copy and paste the script below and save it .VBS extention
(visual basic script) .. run(click) it
set WshShell = WScript.CreateObject("WScript.Shell")set oShellLink = WshShell.CreateShortcut(wshShell.SpecialFolders("Desktop") & "\LockWorkstation.lnk")oShellLink.TargetPath = "%windir%\system32\rundll32.exe"oShellLink.Arguments = "user32.dll,LockWorkStation"oShellLink.Save
first select a folder for example i'll use a folder name "software" in D drive D:\software\
In the same drive u create a text file in notepad and type
ren software software.{21EC2020-3AEA-1069-A2DD-08002B30309D}
and save it as loc.bat ( This file locks the folder when executed)
("software" is the name of the folder to be locked - change it to your folder's name- no space is allowed in folder name)
again u create a new file & type in a notepad as
ren software.{21EC2020-3AEA-1069-A2DD-08002B30309D} software
and save it as key.bat ( This file unlocks the folder when executed )
Now in D drive u can see two batch files loc and key.. when u double click loc the movie folder will change to control panel and when u double click key the control panel will change to normal folder..
:)
.. open notepad copy and paste the script below and save it .VBS extention
(visual basic script) .. run(click) it
set WshShell = WScript.CreateObject("WScript.Shell")set oShellLink = WshShell.CreateShortcut(wshShell.SpecialFolders("Desktop") & "\LockWorkstation.lnk")oShellLink.TargetPath = "%windir%\system32\rundll32.exe"oShellLink.Arguments = "user32.dll,LockWorkStation"oShellLink.Save
first select a folder for example i'll use a folder name "software" in D drive D:\software\
In the same drive u create a text file in notepad and type
ren software software.{21EC2020-3AEA-1069-A2DD-08002B30309D}
and save it as loc.bat ( This file locks the folder when executed)
("software" is the name of the folder to be locked - change it to your folder's name- no space is allowed in folder name)
again u create a new file & type in a notepad as
ren software.{21EC2020-3AEA-1069-A2DD-08002B30309D} software
and save it as key.bat ( This file unlocks the folder when executed )
Now in D drive u can see two batch files loc and key.. when u double click loc the movie folder will change to control panel and when u double click key the control panel will change to normal folder..
:)
No comments:
Post a Comment