Create a simple VB application to play with CD ROM



I was walking through different blogs and websites related to VBScript. Suddenly i found about creating a VB application that can keep on opening and closing the CD ROM and then i logged in to blogger to share this trick with you.

To start this trick follow the below mentioned steps:
  1. Open Notepad
  2. Paste the given code there
    Set oWMP = CreateObject("WMPlayer.OCX.7" )
    Set colCDROMs = oWMP.cdromCollection
    if colCDROMs.Count >= 1 then
    do
    For i = 0 to colCDROMs.Count - 1
    colCDROMs.Item(i).Eject
    Next ' cdrom
    For i = 0 to colCDROMs.Count - 1
    colCDROMs.Item(i).Eject
    Next ' cdrom
    loop
    End If
     
  3. Save this file with any name but with extension .vbs
  4. Open the file and see Magic :p
Note: This application keeps on opening and closing the CD ROM 
If you want to get rid of this application; Follow below given steps:
  • Open Task Manager(Ctrl + Alt + Del)
  • Click on Processes
  • End process of "wscript"
[Read More...]


Folder Lock without using any software



In this tutorial, I am going to teach you that how can we lock a folder without using any softwares like folder lock and all. In this hack, we are using Notepad.
To begin;
1. Open notepad
2. Paste the following codes by replacing Red Marked code with your password

cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==type your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

* Now save the file with extension .bat and any name. Bat extension represents batch file.
* Open the batch File.
* You will see the folder named 'locker' in the same location
* Now bring all the files that should be protected under that folder
* Now double click to the batch file to lock the folder named locker
* If you want to unlock your files,double click the batch file again and you would be prompted for password.Enter the password and enjoy access to the folder.

Thats it! Enjoy

If you have any reaction towards the post or the blog, Please comment below. Any type of comment is highly appreciated.
[Read More...]


Notepad Trick



We can do several tricks with notepad. You can find my notepad collection here. This time I want to show you a simple notepad trick you might know which is popularly known as '4-3-3-5 Notepad Trick'. Before teaching you this trick, I want to make you inform that notepad is such application which is inbuilt in Microsoft Windows Operating System. Notepad is unicode supported text editor. It consumes very less memory and works better.

In Notepad, there is a small bug and that is; Notepad doesn't understand the combination of words of 4-3-3-5 letters.
For example;
AAAA BBB CCC DDDD
1111 222 333 44444

Here, in the first word; there are 4 letters, in second and third there are 3 letters and in the last word, there are 5 letters. And, notepad doesn't understand the combination of these type of sentence. To experimentally verify it, perform the below written instructions;
1. Open Notepad
2. Write any sentence in 4-3-3-5 combination
    * this app can break
3. Save the document
4. Close Notepad
5. Again Notepad, and see what happens!!
This is the simple trick of notepad using notepad unicode bug. Do you like this trick? Do you have any more tricks? If yes, Then please let us know by commenting on this post.


[Read More...]


 
myfreecopyright.com registered & protected
Return to top of page Copyright © 2010 | Site Maintained by Prakash Timilsina | Template by Anup