Pages

Showing posts with label Scripts. Show all posts
Showing posts with label Scripts. Show all posts

Friday, September 14, 2007

Change background of the USB drive

Change the background of the USB drive in less than 10 secs. You can add any image. Here are the steps to follow:

  • Open a "notepad". (Note: start->run->notepad).
  • Copy the following code into the notepad

[.ShellClassInfo]
IconFile=%SystemRoot%\system32\SHELL32.dll
IconIndex=127
ConfirmFileOp=0

[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
Attributes=1
IconArea_Image="your_picture.jpg"
IconArea_Text="0xFFFFFF"
VeBRA sources - don't delete the tag above, it's there for XXXXX purposes -
[ExtShellFolderViews]
{BE098140-A513-11D0-A3A4-00C04FD706EC}={BE098140-A513-11D0-A3A4-00C04FD706EC}
{5984FFE0-28D4-11CF-AE66-08002B2E1262}={5984FFE0-28D4-11CF-AE66-08002B2E1262}

[{5984FFE0-28D4-11CF-AE66-08002B2E1262}]
PersistMoniker=Folder.htt
PersistMonikerPreview=%WebDir%\folder.bmp
  • Save the notepad as "desktop.ini".
  • Now copy the image (Note:image you wan to use as background) and desktop ini to the usb. Hide the desktop.ini and refresh.
Your are done!

Saturday, March 3, 2007

Adding "Find Target" To The Shorcuts

Find Target is not present directly on the menu of a shortcut. This makes the job tough in finding the target of the shortcuts on the desktop. We can fix this with the help of some code and notepad.



Code:

@echo off
setlocal
set FT="%TEMP%\Find_Target.tmp"
set FTV="C:\Find_Target.vbs"
@echo REGEDIT4>%FT%
@echo.>>%FT%
@echo [HKEY_CLASSES_ROOT\lnkfile\Shell\Find Target\command]>>%FT%
@echo @="wscript.exe \"C:\\Find_target.vbs\" \"%%1\"">>%FT%
@echo.>>%FT%
@echo.>>%FT%
@echo Dim param, filenam, targt, shortct>%FTV%
@echo Set param = WScript.Arguments>>%FTV%
@echo filenam = param (0)>>%FTV%
@echo Set WshShell = WScript.CreateObject("WScript.Shell")>>%FTV%
@echo Set shortct = WshShell.CreateShortcut(filenam)>>%FTV%
@echo targt = shortct.TargetPath>>%FTV%
@echo WshShell.Run "%windir%\explorer.exe /select," ^& Chr(34) ^& targt ^& Chr(34)>>%FTV%
regedit /s %FT%
del /q %FT%
endlocal

  • Copy and paste this code in Notepad
  • Save this file as Find_Target.bat in the root drive of your OS(directly in the drive where Documents and Settings, Program Files and WINDOWS reside)
  • Run Find_Target.bat (Just press Enter!)
A VB Script is created...DO NOT TOUCH THAT FILE!


Saturday, February 10, 2007

All New Fisheye Script!

Fisheye is not a new script, It is been used in many websites and I am sure even you might have notice. Its simple, effective and looks awesome. OK lets not deviate and jump into the topic.

Place the following javascript in a external file and place it in your head part.

Download the fisheye.js from HERE and upload it to web and refer in the header part.


Paste the following code in your CSS (obv in head section)


Now you need to just include your lines in between


and the effect will be like this:

Place your cursor on these lines

Empty streets Empty house
Hole inside my heart,
I'm all alone,
Rooms are getting smaller,

blah blah! have fun :)

Wednesday, February 7, 2007

The Yahoo! online/offline Scripts

Placing these scripts in your website or blog will let your readers to know current status of yours, thus may help you to communicate with them.

Yahoo! online/offline scripts

Replace "YOURID" with your actual yahoo id and "YOURMESSAGE" with your own message that appears when clicked on your button.

Yahoo! Status (Online/Offline)


Yahoo! Status (Online/Offline)


Yahoo! Status (Online/Offline)