Feeds:
Posts
Comments

Posts Tagged ‘function’

               .Synopsis             Test to see if this host is online and accessible.                 .Description             Sends two pings the the hostname, then attempts to access the admin share for this host.                 .Parameter HostName             Hostname or IP address to be tested.                 .Parameter skipPingTest             This will allow you [...]

Read Full Post »

Have you ever had the need for a function to copy every file in a directory… wait no longer… here is a recursive way to copy files: Sub CopySelectedFiles(ByVal strSourceDirectory As String, ByVal strDestDirectory As String, ByVal strSearchString As String) Dim dirInfo As New DirectoryInfo(strSourceDirectory) Dim fsInfo As FileSystemInfo For Each fsInfo In dirInfo.GetFileSystemInfos Dim [...]

Read Full Post »

Below is the first function I’m publishing… It uses my favorite programing feature… recursion. Recursion is a tricky thing to do right. So many loops, so many variables, etc… This function searches for a file and all sub-directories of your root/starter directory. VB.net Source Code: Public Function SearchForFile(ByVal strSourceDirectory As String, ByVal strSearchString As String) [...]

Read Full Post »

Follow

Get every new post delivered to your Inbox.

Join 248 other followers