Pages

Search This Blog

Thursday, November 19, 2009

delay open file when startup with batch files

I have come across a need to start 2 application during window start up by sequence. The 1st application i call it App1 (C:\application\App1.exe) and the 2nd one i call it App2 (C:\application\App2.exe). Check the below script, REM mean comment in command prompt.

REM set command display to off
@echo off

REM start application App1.exe
START C:\windows\notepad

REM wait for 5 seconds
PING -n 5 localhost > nul

REM start application App2.exe
START C:\windows\notepad

REM exit batch after finish
EXIT

To test it, Open window notepad. Copy and paste code above to the notepad and save as "start.bat". To make it simple for testing, i have change C:\application\App1.exe to C:\windows\notepad and C:\application\App2.exe to C:\windows\notepad.

Double click on start.bat and you can see the batch file in action.

Hope this help.


Saturday, November 14, 2009

Ping port

Well, sometimes we need to know whether the port in open or block, we need to do some checking or troubleshoot through ping/telnet. We cannot ping a IP with port but we can telnet certain IP together with Port no.

For example:
Go to open command prompt, if we want to check whether port 21 is working for IP 203.166.87.9 what we need to do is
> telnet 203.166.87.9 21

Thursday, November 12, 2009

Method not found: 'Void System.Web.UI.ScriptManager.RegisterStartupScript

Deploy a running web application from one windows 2003 server to another windows 2003 server. The application is running asp.net 2.0 framework with Ajax.net v1, MSSQL 2005.
After deploy everything and run the application, Error message

Method not found: 'Void System.Web.UI.ScriptManager.RegisterStartupScript(System.Web.UI.Page, System.Type, System.String, System.String, Boolean)'

Situation:
In the bin folder, we deploy together with
AjaxControlToolkit.dll
AjaxControlToolkit.pdb
System.Web.Extensions.Design.dll
System.Web.Extensions.dll

After look around and found that the server already installed with the same version but the strange thing is the file size are different from the one i have in bin folder. The first thing can thought of is reinstall the ajax.net.

No luck, after the ajax.net reinstallation, it's not work. Still the same error message:

Method not found: 'Void System.Web.UI.ScriptManager.RegisterStartupScript(System.Web.UI.Page, System.Type, System.String, System.String, Boolean)'

Try to delete all 4 dlls
AjaxControlToolkit.dll
AjaxControlToolkit.pdb
System.Web.Extensions.Design.dll
System.Web.Extensions.dll
from the bin folder but still same error show. So, i undo the deletion.

Try to google around and look for useful suggestion but no luck. All post stated that working after the ajax.net re installation.

Finally, i uninstall the ajax.net from the server and let the application use the 4 dlls
AjaxControlToolkit.dll
AjaxControlToolkit.pdb
System.Web.Extensions.Design.dll
System.Web.Extensions.dll
in the bin files.

It solve my problem.

Hope this sharing helps.

Monday, November 9, 2009

Penang Software House

We are running a software development company Encelabs Sdn Bhd located in Penang, Malaysia. Basically Encelabs provide web application customization like web2.0 community website, facebook application and etc. Encelabs also provided services to develop business software development like eCRM, eProcurement, eRecruitment and etc from A to Z. Some of Encelabs portfolio are listed in Encelabs website.

Feel free to contact Encelabs to know more.