Windows may i help you… (sources)

October 16, 2007

Faster startup of Windows XP……

If your computer takes a long time to become useable after starting up or logging on, or you want a clean boot of Winodws XP try this,

Click Start > Run > Type “msconfig” > On the Startup tab click Disable All and on the Services tab check the Hide All Microsoft Service box and then click Disable All.

Click Restart and Windows XP will restart with only the system services and applications running resulting in a vey fast logon / startup.
*******

N.B This tweak will disable all non-system startup sevices and applications,

so if you have anything you want to run in the background such as anti virus software do not disable that item.

Cleaning up XP Junk Via Batch …

Clean uo ur system TEMP, RECENT, HISTORY, TEMPRORY INTERNET FILES, & PREFETCH files Via a simple Batch File

Copy This Coading To Notepad And save it as Cleanup.bat
Please Note ALWAYS RUN THIS FILE FROM SYSTEM DESKTOP

**********
@echo Off
@Title Ghost Nt Cleaning System File
@
@cd\
@
Echo. Cleaning Prefetch Files
@cd %windir%\prefetch
@del /s /q *.* |echo. >nul
@cd\
Echo. Cleaning Temprory Files
@cd %USERPROFILE%\Local Settings\Temporary Internet Files
@del /f /s /q /a s *.* |echo. >nul
@cd..
@rd /s /q Temp |echo. >nul
@rd /s /q History |echo. >nul
@@MD Temp
@cd\
@del /s /q *.tmp
@
@cd %USERPROFILE%\Recent
@del /s /q *.* |echo. >nul
Echo. Please Wait More For Last Cleanup
@del /s /q *.chk |echo. >nul
@
Echo. Cleanup Sucessfull


Folder Lock without any S/W & PDF can speak..

August 20, 2007

Hi friends as i was out of station i cannot able to blog,but now i am back.Here some thing for you regarding locking a folder and some PDF facts.

Open Notepad and copy the below code and save as locker.bat.

At first time start it will create folder with Locker automatically for u . don’t forget to change your password in the code its shown the place where to type your password.
After creation of Locker folder again click on the locker.bat.it will ask.press Y and enter key ,then Locker folder will be disappeared.

Again to get it click on locker.bat. Press Y and enter key.

Again click locker.bat and give your password, you will get your folder opened. J


(NB:The folder Locker will be on the same on path of the batch file(*.bat))

**********************************************************

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

For those who have not received this information yet …

Did you know this?

You can listen to any PDF file. Open any PDF file with Adobe

Reader 7 .0 Or 6.0 and the short cut keys are:

Ctrl+shift+b – to hear the entire Document

Ctrl+shift+v – to hear a single page

Ctrl+shift+e – to stop

Ctrl+shift+c – to resume

Open any PDF File and experiment….

 

Nested tags and JS concepts..

July 23, 2007

Last week i come across some weird situations while coding,so here i just want to share those with you people.

1.Nested Form tags. (never do)

Every Java developer knows that what ever appears on the browser is an out come of Java script and HTML.So to pass the values from HTML to a specific URL’s we mostly use form tags.Forms are made of text boxes, check boxes, radio buttons, drop-down lists, and other input fields.

The representation of for tag is

to open and

the close of the tag.
So the code seems to be as
<’form’>
//your HTML code
<’/form’>

so the problem i regularly faced is the nested of the form which you shouldn’t do while coding.

//Its a wrong way to handle

<’form’>(Parent form)

//your HTML code-1

<’form’>(child form)

//your HTML code-2

<’/form’>(child form closed)

<’/form’>()

(NOTE:- there shouldn’t single cot in the tag *’*. I introduced ‘ because other while it accepts as a form tag.)

Any how you will never face the problem in Firefox i don’t know how it able to find the closed parent form object before starting the child form.But IE won’t allow you to do this in it ,it throws a JS error.

So in above image i have created a request form which ends at the last of the page in between i used another Task form which is present in a div -shown as Task tab .now when i click that tab it throws a JS error which is not shown in Firefox.

Here are some cases when one can do this mistake mostly

  • When your are including one jsp in another jsp.
  • When you are hiding and showing the div and the div has a form .
  • while constructing through iframe.

well here i said few of the possible cases.

2.Difference between “var a=3″ and “a=3″ in JavaScript :-

Every Java developer knows the difference between “var a” and “a” i.e if you are declaring var a=3 ,’a’ will be assigned locally; but when you declare ‘a=3′ a will be declared Globally.This is theoretically i to know but practically no, so one of my college explain me practically which as follows,

Case1:
<’script’>
var a =3;
function 123{

a = 4;
alert1(‘a=’+a); //alert1

}
alert2(‘a=’+a);
<’/script’>

Case2:
<’script’>
a =3;
function 123{

a = 4;
alert1(‘a=’+a); //alert1

}
alert2(‘a=’+a);
<’/script’>

Case1:-So suppose here u called a function 123 now what would u expect those alert results. so the ans is 4 & 4 respectively .So here if you define a variable a as var a=3 it will lost its value if any function called over writes ‘a’ value.



Case2:-So now what you expect the result here.Here it will be 4 & 3 respectively.Once you define a variable global then it will retain its value globally through out the script even if you used inside any function it wont lost its value out of the function.