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

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

» Read more
1 23 24 25 26 27