Sunday, March 16, 2008

Create Hidden Command Prompt/CMD/COMMAND Process

Hi friends,

Being a Java programmer, i always have a wish that while distributing my programs, instead of creating some setup, i could just distribute it in a JAR file & launch it via a batch file!
But a batch file, means a command prompt window keeps running side ways!
There began my search for a way to create a hidden command prompt process!

I came across two good solutions:
  • Create Hidden Process (http://www.commandline.co.uk/chp/)
  • NirCmd (http://www.nirsoft.net/utils/nircmd.html)
Create Hidden Process is an excellent freeware which allows you to launch almost anything from command prompt & that too completely hidden!
For example, i participate in BOINC Projects (SETI@Home & Climateprediction)
Running the BOINC GUI Module consumes lots of RAM & CPU...so i always prefer to launch it via Console!
But launching via console means, i have to keep a command prompt window open!
Using CHP, i can easily create a hidden command prompt process as follows:
###########################
bhide.bat - Example to launch boinc console using CHP (Create Hidden Process)

CHP cmd.exe /c ""d:\User Profiles\skatdare\boinc.bat""
exit
###########################

###########################
boinc.bat - Example to launch boinc console (sub-batch file call)

cd\
cd pro*
cd boinc
boinc

##############################

So download Create Hidden Process from here!

NirCmd is an advanced command line tool which allows us to do lots of things without showing any user interface.
More detailed documentation for NirCmd is available here..
Download NirCmd from here!

So enjoy Hiding command prompts :-)

Keywords: batch file,batch file command,batch files,batch files command,batch files prompt,cmd,cmd command,cmd exe,cmd32,command exe,command prompt,command prompt commands,command promt,command windows xp,dos command,dos commands,dos prompt,j5,j7,j70,msdos prompt,windows 2000,command,windows command prompt,windows prompt,windows xp prompt,z5,z7

Friday, June 29, 2007

Connecting Nokia 6600 PC Suite v1.1.0 with Bluesoleil Bluetooth Dongle

Connecting my Nokia 6600 PC Suite with a Bluesoleil Dongle was a big headache!
Earlier Bluesoleil version upto v1.4 worked fine with PC Suite v1.0 for Nokia 6600...but
ever since the PC Suite v1.1 for Nokia 6600 has been released & newer versions of
Bluesoleil coming up, connecting the both is a big problem!

I somehow though managed to connect it, so here are the steps for the same..

1)First of all you need the Bluesoleil Driver (http://www.ivtcorporation.com).
Please ensure that your Dongle supports Bluesoleil drivers. Not all dongles are supporting
the same.
I used the Bluesoleil driver Version: 2.1.3.0 Release: 060429 (Check Image Below)



2)After the driver installation, install the Nokia 6600 PC Suite, version 1.1.0
Download from: http://www.nokia-asia.com/nokia/0,,59279,00.html

3)PC Suite successfully installed, now diverts us to the mRouter Connection Settings...
There are various COM port options to be selected, and after many trials i found the
correct settings. Check the attached picture to select exactly what is required in your
mRouter Connection Setting Box!



4)Restart your PC

5)Insert your Bluetooth Dongle in USB & start Bluesoleil

6)Start bluetooth on your Nokia 6600 & press F5 on Bluesoleil window. This would search
your Nokia 6600 & list it.

7)Right Click the device listed & select PAIR DEVICE. Feed in any random number, say 123 &
when prompted on your mobile feed the same so that both the devices are paired to each
other!

8)Now double click your Nokia Mobile Device, & the services supported by it would be
highlighted!




9)Double Click the COM Port icon & it would ask, do you always want the service at COM port
automatically activated for this device? Say YES!
Now, it would prompt your mobile phone, saying the PC is requesting for connection, say
YES!

10)Once this is done, wait for few minutes, the mRouter would start blinking & say
connected.

11)Open the Nokia 6600 PC Suite, & it would say new phone found! Bingo!!
Thats it, take backups, restore or sync your mobile with PC Suite!

If you face any problems in this, just ask!

Enjoy the power of Nokia 6600 V1.1.0 PC Suite & Bluesoleil Bluetooth Dongles!!

Keywords: blue tooth,bluesoleil,bluesoleil 2.3,bluesoleil bluetooth,bluetooth,bluetooth dongle,cell phone,cell phones,cellphones,cellular,cellular phones,computer,free pc suite,gsm phones,ivt,ivt bluesoleil,mobile,mobile phone,pc bluetooth,pc connection,pc mobile,pc phone,pc phones,pc suite,pc suite 6600,pc suite bluetooth,pc suite software,phones,smartphone,software suite,usb dongle,wireless

Saturday, September 30, 2006

Creating SYSTEM Folders in Windows XP (con, prn, aux, etc)

Just curious around the working of Windows XP.. i found one interesting stuff!
Folders with name: CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, & LPT9 cant be created using Windows Explorer or Command Prompt directly!

This is prevented as XP terms these folders as SYSTEM Folder Names reserved only for the Operating System..
But our curious brains dont stop pondering over such pessy stuff!

I searched around the net & found this trick to create system folders on XP through command prompt!

Try this:
CREATION
Syntax:md \\.\\$path
Example:prompt>md \\.\\C:\con
Explanation: This would create a folder named "con" on your "C Drive"

Similarly to delete such folder:
DELETION
Syntax:rd/s \\.\\$path
Example:prompt>rd/s \\.\\C:\con
Explanation: This would remove the folder named "con"!
Note: rd(Remove Directory) command is used with "/s" switch as otherwise it would give error that "folder is not empty"!

On another hand...if you ever wondered how to create a folder with no name...then try this:
Create a New Folder from Windows Explorer
Select rename & type: "ALT+255"(Use Numpad)..thats it!
ALT+255 stands for blank character in ASCII...so it still accepts your folder name!

Keywords: computer, file folders, information systems,network,operating systems,system,system 2000,system folder,system folders,system volume information folder,systems,technology,windows system folder,windows xp folders

Saturday, September 02, 2006

Missing/Disappearing Battery/Power Icon/Meter in Windows XP SP2 on Acer, IBM Thinkpad, Toshiba, etc Laptops!

You got a brand new laptop with Windows XP SP2 & applied those Windows Update??
A few days later you get this annoying loss of POWER METER/BATTERY ICON from the system tray!

I did a few research & four possible solutions found are listed here...

Solution 1:
1. Right-click on My Computer, Click on Manage
2. Expand 'Services & Applications'
3. Highlight 'Services'
4. Look through list of services on the right....
5. Find Universal Plug & Play Device Host
6. Right-click on it.
7. Click properties.
8. Change startup type to 'Disabled'
9. Do exactly the same with 'SSDP discovery service'

Restart & you would get your Icon BACK!

Solution 2:
1. Open Control Panel > Add/Remove Programs.
2. In the sidebar, click on Add/Remove Windows Components.
3. Scroll down to Networking Services, select it, and click the Details... button.
4. Uncheck UPnP User Interface & other UPnP Service Listed.
5. OK your way out, close Add/Remove Programs, and reboot.
All tray icons should appear normally, without the need to log off and back on.

Solution 3:
1. START, RUN, type "regedit", then enter
2. Once in the Registry Editor, navigate the left directory tree to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
3. Then right click on the right window pane, click new, then string value.
4. Give the new string value the name "systray"
5. Your new value should now have the name "systray", the type "REG_SZ", and no/empty data.
6. Right click on your new "systray" value and click "modify".
7. Now give "systray" the value data: "C:\WINDOWS\system32\systray.exe"
8. Click ok and close the Registry Editor.
9. Restart your computer.

Solution 4:
1. Save the following "systray.zip" file & unzip it to extract "systray.reg"
Download(Save Target As): http://www.filefactory.com/file/a1b9773/n/systray_zip
2. Double click the file to add the contents to registry!
3. Then restart the PC & it would be solved...
Source: Digiportal Software

Above is also the general solution for any other System Tray Icons Failing/Disappearing from Loading...
Apart from this, no other concrete solution has been yet discovered by me...

Another part you must be worried regarding the services disable & unistallation of UPnP stuff! Well..as of now UPnP is not much used, so you can safely do the steps as i said...until microsoft provides an solution in future releases!

If you have another uncommon problem like Windows XP/2K/2K3 Server showing wrong battery time, then you need to get a hotfix from Microsoft...
Read: http://support.microsoft.com/kb/889816

Please post the solution which worked for you as an comment to this post & also stat wat exactly was your problem, so others can be benefited from it!

Sources:
Google & Annoyances.org
Notes: This article has been tested on my Acer Aspire 3002NLC Laptop & also found to be working on other company models like IBM Thinkpad, Lenovo, Toshiba, Sony Vaio, etc..

Keywords: acer laptop battery recall,asus laptop battery,battery,battery management,battery meter,battery meters,battery power meter,battery status,battery tester,battery voltage,charger battery,compaq battery,compaq laptop battery,fluke meter,hp battery,hp laptop battery,hp notebook battery,hp pavilion laptop battery,laptop,laptop accessories,laptop accessory,laptop backpacks,laptop batteries,laptop battery,laptop battery charger,laptop battery li ion,laptop battery life,laptop battery meter,laptop charger,laptop computer,laptop computer battery,laptop computers,laptop power,laptop power supply,lithium battery,lithium ion laptop battery,nec laptop battery,nicad battery,nicd battery,nimh battery,notebook battery,notebook laptop battery,panasonic laptop batteries,power battery,
power meter,presario battery,presario laptop battery,recharge battery,rechargeable batteries,rechargeable battery,replacement batteries,replacement laptop battery,samsung laptop battery,sanyo laptop battery,series laptop battery,status meter,thinkpad battery
toshiba battery,toshiba laptop batteries,toshiba laptop battery,toshiba notebook battery
universal laptop battery,windows xp power meter,xp meter