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

» 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

» 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

» Read more
1 27 28 29 30 31