Thursday, 2 August 2012

VBS Programming basics


Hey there everyone. So, I decided to start a series on VBS programming language. First the question is - "What is VBS?"
VBScript (Visual Basic Scripting Edition) is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It is designed as a “lightweight” language with a fast interpreter for use in a wide variety of Microsoft environments. VBScript uses the Component Object Model to access elements of the environment within which it is running; for example, the FileSystemObject (FSO) is used to create, read, update and delete files.
So, that's VBS. If you want know more about it click here.

So, today I will show you how you can make a basic pop up box in VBS language. You will only a computer and Notepad.


First of all open up notepad and type this-

x=msgbox("Your Message ",buttons,"cool")

On the place where it is written Your Message you can edit it to anything you want and also for the title
you can edit that cool portion. Now you probably noticed that what the hell is the buttons. It shows different types of buttons on the pop up.

For the above picture here is the code.


x=msgbox("Hello everyone!!!",0,"cool")

Also here is few buttons and the numbers so you can experiment with it.


0: Normal message box
1: OK and Cancel
2: Abort, Retry, Ignore
3: Yes, No, Cancel
4: Yes and No
5: Retry and Cancel
16: Critical message icon
32: Warning query icon
48: Warning message icon
64: Information message icon
4096: Always stay on top of the desktop

Now the most important part -"How to save it?"

It is pretty basic but the most important part. So once you have finished writing in the notepad.
Go ahead and click on File > Save and save dialogue box will appear. Here you can give any name but followed by .vbs
And in the save as type it should be "All Files"
Here is an example below -








Also if you want to add more than two features like critical message icon and Yes, No and Cancel you can use the plus (+) sign. For example-


x=msgbox("Hello everyone!!!",4+16,"cool")



The output will be like this -
































So hope you have enjoyed the very first tutorial on vbs programming.
Make sure to check again for more tutorials like this.

My website -http://www.aacproduction.co.cc
You Tube channel - http://www.youtube.com/allismagic1

AAC Production - All About Computers


Friday, 22 June 2012

Make a Password Protected Folder Without any software

Many people were asking me how to Make a Password Protected Folder Without any software. And here is the answer. You only need a Notepad and some programming. I have made a video on it which explains all of it. So watch that video below :-

Make a Password Protected Folder Without any software




Hope this helps here is the code---

cls
@ECHO OFF
title youtube.com/allismagic1
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Are you sure to lock this 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 MyFolder "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 Your Secure Folder
set/p "pass=>"
if NOT %pass%== password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End

Note:- Change the highlighted part to your own desired password (Default password is "password"  without "" )



Visit my You Tube Channel - www.youtube.com/allismagic1



Thursday, 21 June 2012

Few ways to make your PC speed up

I am a frequent computer user and people always ask me how do you maintain your computer. Well i must say maintaining your computer is a huge thing. You need to use and check many maintenance software, system boost up software and many others are there. In my opinion there the few things you need to have for maintenance of your PC. Few things I have listed below....

Wednesday, 20 June 2012

How to disable Facebook Timeline

Hello Everyone!!!
Today I will tell you how you can change the Facebook Timeline to old profile...Yaa...Happy times in your old Facebook profile...Personally I don't like the new timeline so i stated searching in the Google about how to change it back and I found a way to reverse it back...The only problem is - its only visual...that means only you can see Your old profile not others or from any other computers this is done by installing a plugin or add-on in your browser....More detail description you will found in this video!!!!

 

Hope you enjoyed watching this video...Here are the links...

Visit my You tube channel - www.youtube.com/allismagic1
Visit my Website - www.aacproduction.co.cc