tag:blogger.com,1999:blog-71785144768760530392024-03-08T04:49:08.009-08:00New Technologies in IT and Web Concepts by NayabAnonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.comBlogger31125tag:blogger.com,1999:blog-7178514476876053039.post-90433822518799910822016-04-09T03:12:00.000-07:002016-04-09T03:12:32.892-07:00Encryption and Decryption of Connection Strings in Web.config File via command line<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Encryption and Decryption of Connection Strings in Web.config File</b><br />
<br />
You can encrypt and decrypt the tags in web.config file using command line.<br />
<br />
Go to command prompt:<br />
Then go to the respective framework.<br />
<br />
For encryption and decryption of "connectionStrings" tag<br />
<br />
Encrypt:<br />
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -pe "connectionStrings" -app "/appname"<br />
<br />Decrypt:<br />
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -pd "connectionStrings" -app "/appname"<br />
<br />
For encryption and decryption of "appSettings" tag<br />
<br />
Encrypt:<br />
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -pe "appSettings" -app "/appname"<br />
<br />
Decrypt:<br />
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -pd "appSettings" -app "/appname" <br />
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-87324004013008941392013-12-08T11:10:00.002-08:002013-12-08T11:10:27.184-08:00To get the complete version of SQL Server<div dir="ltr" style="text-align: left;" trbidi="on">
<b>To get the complete version of SQL Server</b><br />
<br />
You can use the command below in a new query window of SQL Server. <br />
<br />
select @@VERSION <br />
<br />
Alternate commands:<br />
SELECT <br />
SERVERPROPERTY('Edition') AS Edition,<br />
SERVERPROPERTY('ProductVersion') AS ProductVersion,<br />
SERVERPROPERTY('ProductLevel') AS ProductLevel<br />
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com1tag:blogger.com,1999:blog-7178514476876053039.post-12831178759376366162013-12-08T10:55:00.003-08:002013-12-08T10:55:59.457-08:00To get the dll from the GAC(Global Assembly Cache)<div dir="ltr" style="text-align: left;" trbidi="on">
<b>To get the dll from the GAC(Global Assembly Cache)</b> <br />
<br />
For Pre-defined assemblies, type the below command in Run prompt <br />
<br />
%windir%\assembly\gac <br />
<br />
For the custom(user) dll <br />
<br />
%windir%\assembly\GAC_MSIL <br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com2tag:blogger.com,1999:blog-7178514476876053039.post-6673524335683161532013-10-02T07:08:00.001-07:002013-10-02T07:08:59.813-07:00Rename multiple files in a folder incrementally using this batch file<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
<strong>Rename multiple files in a folder incrementally using this batch file</strong></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
::Setup the stage...<br />SETLOCAL ENABLEDELAYEDEXPANSION<br />SET folder=D:\ABC<br />SET count=1</div>
<div style="text-align: left;">
::Action<br />CD "%folder%"<br />FOR %%F IN ("*.jpg") DO (<br /> MOVE "%%F" "!count!.jpg"<br /> SET /a count=!count!+1<br />)<br />ENDLOCAL</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Note: Put this batch file in that folder where other files that needs to be renamed are available and then run the same. </div>
</div>
Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-23665077850384873592013-04-27T12:05:00.002-07:002013-04-27T12:05:21.577-07:00Email not sent until application closes in C#<div dir="ltr" style="text-align: left;" trbidi="on">
Email not sent until application closes in C#<br />
<br />
It may happen that your email via SMTP will not get sent until the application closes in C#.net<br />
<br />
To send the email immediately and at the same time the application is working, you can include the below mentioned line of code:<br />
<br />
<strong>System.Net.ServicePointManager.MaxServicePointIdleTime = 1</strong> </div>
Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-5563152644706226422013-04-13T10:47:00.000-07:002013-04-13T10:47:10.673-07:00Creating batch file for Scheduled Task Count<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Creating batch file for Scheduled Task Count<br />
<br />
@echo off<br />
title Scheduled Task Count<br />
setlocal enabledelayedexpansion<br />
<br />
schtasks /query /fo table<br />
<br />
echo.<br />
set /a count = 0<br />
for /f %%i in ('schtasks /query /fo table /nh') do (<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>set /a count = !count! + 1<br />
)<br />
<br />
echo Total Tasks Count : !count!<br />
set /p=<br />
</div>
Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-26050401853527298212013-02-19T10:08:00.001-08:002013-02-19T10:08:33.020-08:00Restart a server using command prompt<div dir="ltr" style="text-align: left;" trbidi="on">
Restart a server using command prompt<br />
<br />
Use command:<br />
<br />
shutdown -r -f -t0<br />
<br />
-r : restart<br />-f : forcefully<br />-t : time (Here we have given 0 secs, which means server will be rebooted immediately)<br />
<br />
If you dont specify time, default time taken for shutting down is 30 secs.</div>
Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-55080872361896833572013-01-01T10:35:00.002-08:002013-01-01T10:35:59.034-08:00Taking site backup in MOSS 2007 using stsadm<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Taking complete site backup in MOSS 2007 using stsadm command on cmd:</b><br />
<br />
1) First go to the path using command prompt:<br />
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN<br />
<br />
2) Fire the command:<br />
stsadm -o backup -url http://sharepoint:8888 -filename c:/filename.dat<br />
<br />
<b>Note:</b><br />
1) This backup only contains Sharepoint related stuff (i.e Config DB, Content DB, Sharepoint Site Pages)<br />
2) If there are any custom pages that are available outside sharepoint, then those pages needs to be incorporated manually.<br />
3) Also if there are some databases(like aspnetdb or custom DB) other than the sharepoint related databases then those databases needs to be restored separately.<br />
<br />
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-59033655766801153202012-11-28T09:27:00.000-08:002012-11-28T09:27:28.259-08:00Unable to restore database in SQL Server because of running processes<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Unable to restore database in SQL Server because of running processes.</b><br />
<b><br /></b>
If you are unable to restore database in SQL Server because of running processes.<br />
<br />
1. You can find which processes are running using the following command:<br />
<b>sp_who2</b><br />
<br />
2. After finding out which processes are running relating to the particular database, you can kill them using the <b>kill </b>command with <b>process id</b><br />
<b><br /></b>
<b>For eg.</b><br />
<br />
kill 63<br />
kill 55<br />
<div style="font-weight: bold;">
<br /></div>
<div style="font-weight: bold;">
This should restore your database.</div>
<div style="font-weight: bold;">
<br /></div>
<div style="font-weight: bold;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-60459440244383139622012-11-15T10:12:00.000-08:002012-11-15T10:12:08.074-08:00Delete duplicate rows in table with no key in SQL Server<div dir="ltr" style="text-align: left;" trbidi="on">
Delete <strong>duplicate rows</strong> in table with no key in <strong>SQL Server</strong>:<br />
<br />
DELETE<br />FROM TableName<br />WHERE TableName.%%physloc%%<br /> NOT IN (SELECT MIN(b.%%physloc%%)<br /> FROM TableName b<br /> GROUP BY b.ColumnName)</div>
Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-58324306684663277262012-09-20T10:46:00.001-07:002012-09-20T10:52:11.572-07:0010 Key Features in Windows 8<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: black;">Windows 8 introduces significant changes to the operating system's graphical user interface and platform; such as a new interface design incorporating a new design language used by other Microsoft products, a new Start screen to replace the Start menu used by previous versions of Windows, a new online store that can be used to obtain new applications, along with a new platform for apps that can provide what developers described as a "fast and fluid" experience with emphasis on touchscreen input.Additional security features were also added to the operating system, such as a built-in antivirus program and a secure boot feature on systems with UEFI firmware.</span><br />
<br />
<strong><u><em>10 Key Features in Windows 8</em></u></strong><br />
<br />
1. Support for both x86 PCs and ARM tablets<br />
2. Touch-centric, Tiles-based User Interface (UI)<br />
3. Charms<br />
4. Snap Multi-tasking<br />
5. Windows 8 Control Panel<br />
6. Web Navigation by Touch<br />
7. Two Touch Keyboards<br />
8. Enhanced Copy Experience<br />
9. Native USB 3.0 Support<br />
10. Better Support for Multiple Monitors</div>
Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-56997921327484458352012-07-15T08:00:00.003-07:002012-07-15T08:01:55.948-07:00How to get the details of W3WP processes running on your server<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">How to get the details of W3WP processes for each app pool running on your server</span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;">Run this command from System32 folder</span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;">Cscript iisapp.vbs</span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;">Output will be in the format:</span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;">W3WP.exe PID: 1468<span style="mso-spacerun: yes;"> </span>AppPoolId: AppPoolForSite1.com</span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;">W3WP.exe PID: 3056<span style="mso-spacerun: yes;"> </span>AppPoolId: AppPooForSite2.com</span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;">W3WP.exe PID: 1316<span style="mso-spacerun: yes;"> </span>AppPoolId: AppPooForSite3.com</span></div>
</div>Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-51385795576800361762012-07-15T07:41:00.002-07:002012-07-15T07:41:25.944-07:00Auto Refresh a Web Page<div dir="ltr" style="text-align: left;" trbidi="on">
Add the below line in the <head> section of your web page. <br />
For Eg.<br />
<meta http-equiv="Refresh" content="90" /><br />
<br />
where "90" is Time in seconds.</div>Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-29310506185952565632012-06-10T07:39:00.001-07:002012-06-10T07:39:34.151-07:00Redirection from http to https using Javascript<div dir="ltr" style="text-align: left;" trbidi="on">
Redirection from http to https using Javascript<br />
<br />
<script language="JavaScript"><br />function redirectHttpToHttps()<br />{<br /> var httpURL= window.location.hostname + window.location.pathname + window.location.search;<br /> var httpsURL= "https://" + httpURL;<br /> window.location = httpsURL;<br />}<br />redirectHttpToHttps();<br /></script></div>Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-50093045862956773992012-05-20T23:39:00.000-07:002012-05-20T23:39:46.419-07:00Redirection of page from http to https using VB.net and C#<div dir="ltr" style="text-align: left;" trbidi="on">
<strong>Redirection of page from http to https using VB.net</strong><br />
<br />
If Not Request.IsSecureConnection Then<br /> Dim redirectUrl As String = Request.Url.ToString().Replace("http:", "https:")<br />
Response.Redirect(redirectUrl)<br />End If<br />
<br />
<strong>Redirection of page from http to https using C#</strong><br />
if(!Request.IsSecureConnection) <br />
{ <br />
string redirectUrl = Request.Url.ToString().Replace("http:", "https:"); <br /> Response.Redirect(redirectUrl); <br />
} </div>Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-47133238558107223662012-05-20T22:21:00.003-07:002012-05-20T22:21:57.686-07:00Redirection Script for redirecting to new page<div dir="ltr" style="text-align: left;" trbidi="on">
<strong>Redirection Script for Redirecting to new page.</strong><br />
<br />
One can use this redirection script to redirect from one page to another<br />
<br />
<SCRIPT LANGUAGE="JavaScript"><br /> <br /> document.location.href = "<url to redirect>";<br /> <br /> </SCRIPT></div>Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-62532203811828225982012-05-03T10:22:00.000-07:002012-05-03T10:22:01.912-07:00init.js - library not registered<div dir="ltr" style="text-align: left;" trbidi="on">
If you are getting a javascript error in the web browser <br />
OR<br />
A Java error<br />
OR<br />Dropdown Menu not working in a Sharepoint 2007 site<br />
<br />Running IE?<br />Have Office 2010 64-bit installed?<br />
<strong>If you are getting a init.js - library not registered error, try this:</strong><br />
Open CMD prompt, and navigate to C:\Program Files (x86)\Microsoft Office\ Office14.<br />
<br />Type <strong>regsvr32 name.dll</strong> and Press Enter.<br />
Restart IE<br />
Done</div>Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-49507219816619146722012-02-05T04:45:00.000-08:002012-02-05T04:45:16.905-08:00Microsoft SharePoint<div dir="ltr" style="text-align: left;" trbidi="on">Microsoft SharePoint is a web application platform developed by Microsoft. First launched in 2001,SharePoint is typically associated with web content management and document management systems, but it is actually a much broader platform of web technologies, capable of being configured to suit a wide range of solution areas.<br />
<br />
SharePoint is designed as a broad, central application platform for common enterprise web requirements. SharePoint's multi-purpose design allows for management and provisioning of intranet portals, extranets, websites, document & file management, collaboration spaces, social tools, enterprise search, business intelligence, process integration, system integration, workflow automation, and core infrastructure for third-party solutions. SharePoint's core infrastructure is also suited to providing a base technology platform for custom developed applications.<br />
<br />
SharePoint is capable of supporting multiple organizations on a single 'server farm'. Microsoft provides SharePoint Foundation at no cost, but sells premium editions with additional functionality,and also provides SharePoint as a service in their cloud computing as part of their Office 365 platform (and previously as part of their Business Productivity Online Standard Suite (BPOS) offering). The product is also sold through a cloud model by many third-party vendors.<br />
<br />
In late 2008, the Gartner Group put SharePoint in the "leaders" quadrant in three of its Magic Quadrants (for search, portals, and enterprise content management).SharePoint is used by 78% of Fortune 500 companies. Between 2006 to 2011, Microsoft sold over 36.5 million user licences.</div>Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-76734085246491829542012-02-05T04:32:00.000-08:002012-02-05T04:33:27.866-08:00JQuery - Cross Browser JavaScript library<div dir="ltr" style="text-align: left;" trbidi="on">jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.<br />
<br />
jQuery is a cross-browser JavaScript library designed to simplify the client-side scripting of HTML.It was released in January 2006 at BarCamp NYC by John Resig. <br />
jQuery is the most popular JavaScript library in use today.<br />
<br />
jQuery is free, open source software, dual-licensed under the MIT License or the GNU General Public License, Version 2. jQuery's syntax is designed to make it easier to navigate a document, select DOM elements, create animations, handle events, and develop Ajax applications. jQuery also provides capabilities for developers to create plug-ins on top of the JavaScript library. This enables developers to create abstractions for low-level interaction and animation, advanced effects and high-level, theme-able widgets. The modular approach to the jQuery library allows the creation of powerful and dynamic web pages and web applications.<br />
<br />
<span class="mw-headline" id="Including_the_library"><strong><u>Including the library</u></strong></span><br />
<br />
<span class="mw-headline">The jQuery library is a single JavaScript file, containing all of its common DOM, event, effects, and Ajax functions. It can be included within a web page by linking to a local copy, or to one of the many copies available from public servers.</span><br />
<br />
<span class="mw-headline"><span class="sc2"><span style="color: #009900;"><</span><span class="kw2"><strong>script</strong></span><span style="color: #009900;"> </span><span class="kw3"><span style="color: #000066;">type</span></span><span class="sy0"><span style="color: #66cc66;">=</span></span><span class="st0"><span style="color: red;">"text/javascript"</span></span><span style="color: #009900;"> </span><span class="kw3"><span style="color: #000066;">src</span></span><span class="sy0"><span style="color: #66cc66;">=</span></span><span class="st0"><span style="color: red;">"jquery.js"</span></span><span style="color: #009900;">><</span><span class="sy0"><span style="color: #66cc66;">/</span></span><span class="kw2"><strong>script</strong></span><span style="color: #009900;">></span></span></span><br />
<br />
<span class="mw-headline"><span class="sc2">The most popular and basic way to introduce a jQuery function is to use the <code lang="jQuery" xml:lang="jQuery">.ready()</code> function.</span></span><br />
<br />
<span class="mw-headline"><span class="sc2">$<span class="br0"><span style="color: #009900;">(</span></span>document<span class="br0"><span style="color: #009900;">)</span></span>.<span class="me1"><span style="color: #660066;">ready</span></span><span class="br0"><span style="color: #009900;">(</span></span><span class="kw2"><strong><span style="color: #003366;">function</span></strong></span><span style="color: #009900;"><span class="br0">(</span><span class="br0">)</span></span> <span class="br0"><span style="color: #009900;">{</span></span><br />
<span class="co1"><em><span style="color: #006600;">// jquery goes here</span></em></span><br />
<span style="color: #009900;"><span class="br0">}</span><span class="br0">)</span></span><span class="sy0"><span style="color: #339933;">;</span></span></span></span><br />
<br />
<span class="mw-headline"><span class="sc2">or the shortcut</span></span><br />
<br />
<span class="mw-headline"><span class="sc2">$<span class="br0"><span style="color: #009900;">(</span></span><span class="kw2"><strong><span style="color: #003366;">function</span></strong></span><span style="color: #009900;"><span class="br0">(</span><span class="br0">)</span></span> <span class="br0"><span style="color: #009900;">{</span></span><br />
<span class="co1"><em><span style="color: #006600;">// jquery goes here</span></em></span><br />
<span style="color: #009900;"><span class="br0">}</span><span class="br0">)</span></span><span class="sy0"><span style="color: #339933;">;</span></span></span></span><br />
<br />
<span class="mw-headline">You can download the JQuery library using the following link:<br />
<a href="http://jquery.com/">http://jquery.com/</a></span></div>Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-15507652725799831322011-11-09T10:05:00.000-08:002011-11-09T10:05:56.503-08:00Create one table from another in SQL Server<div dir="ltr" style="text-align: left;" trbidi="on">To create one table from another in SQL Server you can use the following query:<br />
<br />
select * into New_table from Existing_table<br />
<br />
This will create a new table with the existing structure of old table.</div>Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-41136022210673628542011-10-27T03:03:00.000-07:002011-10-27T03:03:28.590-07:00Drupal:CMS in PHP for Creating Websites<div dir="ltr" style="text-align: left;" trbidi="on">Drupal is a free and open-source content management system (CMS) and content management framework (CMF) written in PHP and distributed under the GNU General Public License which means anyone is free to download it and share it with others.<br />
<br />
The standard release of Drupal, known as Drupal core, contains basic features common to content management systems. These include user account registration and maintenance, menu management, RSS-feeds, page layout customization, and system administration. The Drupal core installation can be used as a brochureware website, a single- or multi-user blog, an Internet forum, or a community website providing for user-generated content.<br />
<br />
Although Drupal offers a sophisticated programming interface for developers, no programming skills are required for basic website installation and administration.<br />
<br />
Drupal runs on any computing platform that supports both a web server capable of running PHP (including Apache, IIS, lighttpd, and nginx) and a database (such as MySQL, MariaDB, PostgreSQL, SQLite, MongoDB or Microsoft SQL Server) to store content and settings. Drupal 6 requires PHP 4.4.0+ while Drupal 7 requires PHP 5.2 or higher.<br />
<br />
You can download Drupal 7.9 using the following link:<br />
<a href="http://drupal.org/project/drupal">http://drupal.org/project/drupal</a><br />
</div>Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-29073537728368394602011-07-20T08:30:00.000-07:002011-07-20T08:30:27.195-07:00Simple FTP using Batch FileFor FTP, I have used two batch files.<br />
File1- example.bat<br />
<br />
Create example.bat file with the following contents:<br />
<br />
open <ip address><br />
<ftpUserName><br />
<ftpPassword><br />
bin<br />
lcd "<path of local folder where the file is present>"<br />
cd /<br />
prompt off<br />
put filename.extension<br />
quit<br />
<br />
File2- Sendexample.bat<br />
<br />
Create Sendexample.bat file with the following contents:<br />
<br />
ftp -s:example.bat<br />
<br />
Thats It...Enjoy<br />
<br />
Also if you need to ftp multiple files use "mput" option instead of "put".Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0tag:blogger.com,1999:blog-7178514476876053039.post-26949781384099977462011-07-03T05:47:00.000-07:002011-07-03T05:47:23.650-07:00Capture IP Address using Asp.Net<div dir="ltr" style="text-align: left;" trbidi="on">The code given below gives you the IP address of the User Accessing the site.<br />
<br />
1) HttpContext.Current.Request.UserHostAddress; <br />
<br />
OR<br />
<br />
2) HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; <br />
<br />
To get the IP Address of the machine and not the proxy use the following code:<br />
<br />
1) HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];<br />
</div>Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com2tag:blogger.com,1999:blog-7178514476876053039.post-24137443050470987612011-06-07T11:21:00.000-07:002011-06-07T11:21:30.668-07:00Zip files using batch file<div dir="ltr" style="text-align: left;" trbidi="on">You can zip files using batch file.<br />
Example :<br />
zip -r -9 -S -u C:\abc.zip C:\*.csv<br />
<br />
Another way if you have winzip installed is,<br />
Example :<br />
WINZIP32 -min -a -ex C:\abc.zip C:\*.csv</div>Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com1tag:blogger.com,1999:blog-7178514476876053039.post-68747406816146128562011-04-23T11:58:00.000-07:002011-04-23T11:58:18.180-07:00DotNetNuke Web CMS<div dir="ltr" style="text-align: left;" trbidi="on">DotNetNuke is an open source platform for building web sites based on Microsoft .NET technology.It is written in VB.NET.<br />
The DotNetNuke web content management system is extensible and customizable through the use of skins, modules, data providers, language packs and templates.<br />
It is distributed under both a Community Edition BSD-style license and commercial proprietary licenses as the Professional and Enterprise Editions.<br />
To Download DotNetNuke Resources you can use this link.: <a href="http://www.dotnetnuke.com/tabid/125/Default.aspx">Click Here</a><br />
As it is a CMS, it makes the job of developing websites easy. One of the sites that I worked upon using Nuke is <a href="http://www.harmonicenvironments.com/">http://www.harmonicenvironments.com/</a><br />
From the site, you can get an idea of how nuke can be used to develop sites.<br />
</div>Anonymoushttp://www.blogger.com/profile/11014330785853855396noreply@blogger.com0