Recursive Directory Info

Imports System Imports System.IO Public Class MainClass Shared Sub Main() Dim nameOfDirectory As String = "C:" Dim myDirectory As DirectoryInfo myDirectory = New DirectoryInfo(nameOfDirectory) WorkWithDirectory(myDirectory) End Sub Shared Public Sub WorkWithDirectory(ByVal aDir As DirectoryInfo) Dim nextDir As DirectoryInfo WorkWithFilesInDir(aDir) For Each nextDir In aDir.GetDirectories WorkWithDirectory(nextDir) Next End Sub Shared Public Sub WorkWithFilesInDir(ByVal aDir As DirectoryInfo) Dim aFile As FileInfo For Each aFile In aDir.GetFiles() Console.WriteLine(aFile.FullName) Next End Sub End Class

» Read more

C# Code : Connection strings for SQL Server 2008

using System.Data.SqlClient; private void ValidationFile() { string FilePath = “”; using (SqlConnection myConnection = new SqlConnection(“Data Source=servername;Initial Catalog=db_name;User ID=user;Password=pass;”)) { using (SqlCommand myCommand = new SqlCommand(“select scanned_document_id, master_id, file_path from scanned_documents”, myConnection)) { myCommand.CommandType = CommandType.Text; myConnection.Open(); using (SqlDataReader myReader = myCommand.ExecuteReader()) { if (myReader.HasRows) { while (myReader.Read()) { FilePath = myReader.GetString(myReader.GetOrdinal(“file_path”)); }}}}}}

» Read more

Agile Software Development

Definition : Agile software development is a group of software development methodologies based on iterative and incremental development, where requirements and solutions evolve through collaboration between self-organizing, cross-functional teams Agile Manifesto reads, in its entirety, as follows: We are uncovering better ways of developing software by doing it and helping others do it. Through this work we have come to value:   Individuals and interactions over processes and tools Working software over comprehensive documentation Customer collaboration over contract negotiation Responding

» Read more

What’s New in Visual Studio 2010?

This topic contains links to information about new features and enhancements in Visual Studio 2010 and associated service releases. New in Visual Studio 2010  Languages Title Description What’s New in Visual Basic 2010 Describes new features in the Visual Basic language and Code Editor. The features include implicit line continuation, auto-implemented properties, collection initializers, and more. What’s New in Visual C# 2010 Describes new features in the C# language and Code Editor. The features include the dynamic type, named and optional

» Read more

Windows 7 Installation Guide / Tutorial

Windows 7 Installation Guide / Tutorial The Windows 7 is finally here. It’s released for beta testers a few days ago and I am here with a small step by step picture guided tour through the installation process. I downloaded the x86 version of the M3 build ( build No: 6801) from Microsoft Connect site, which is 2.72 GB ISO. The x64 version is around 3.2 GB in size. The installation process was just like vista setup and to my

» Read more

Windows Vista Deployment Step-by-Step Guide

Windows Vista Deployment Step-by-Step Guide This document provides instructions for implementing a basic image-based deployment of Microsoft® Windows Vista® operating system. We recommend that you first use the steps provided in this guide in a test lab environment as a means to become familiar with new and updated deployment features and technologies available in Windows Vista. Step-by-step guides are not necessarily meant to be used to deploy Windows Vista operating system features without accompanying documentation (as listed in the Additional Resources section) and

» Read more

Install Windows XP

Install Windows XP Most new computers come with Windows XP installed, so many people never have to install it. However, you may need to install Windows XP if: • You replaced your hard disk drive with a new hard disk drive that does not have Windows XP installed. • You are reinstalling Windows XP on a computer because you want to clean off your hard drive and remove any unwanted programs, such as spyware. • You purchased a computer without

» Read more

Migrating Logins from One SQL Server to Another

As I need to migrate the databases from one server to another server. I have to deal with migrate not only the data, but the SQL Server logins that access that data as well. There may be different ways to migrate SQL Server logins like you can manually re-enter the entire existing login on the new server. You can use DTS to transfer logins. But here sharing one of other way of migration of SQL Server logins, by using the

» Read more
1 19 20 21 22 23