Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Create Directory If It Doesn't Exist

Posted on September 27, 2013October 26, 2015 By David Kittell
If File.ExternalWritable Then
      			If File.IsDirectory(File.DirRootExternal,"new/") = False Then
	  				File.MakeDir(File.DirRootExternal, "new")
      				sDBLocation = File.DirRootExternal & "/new"
	  			End If
   			Else
				If File.IsDirectory(File.DirInternal,"new/") = False Then
      				File.MakeDir(File.DirInternal, "new")
      				sDBLocation = File.DirInternal & "/new"
   				End If
			End If
Originally Posted on September 27, 2013
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Basic4Android Code

Post navigation

Previous post
Next post

Related Posts

WordPress – List All Plugins

Posted on September 22, 2015September 23, 2015

Place the following code on a file ex. ListAllPlugins.php and then navigate to http://yourdomain.com/ListAllPlugins.php <?PHP require($_SERVER[’DOCUMENT_ROOT’] . "/wp-load.php"); require($_SERVER[’DOCUMENT_ROOT’] . "/wp-admin/includes/plugin.php"); function PrintPluginList($option) { $all_plugins = get_plugins(); if ($option == 1) { print_r(array_values($all_plugins)); } else { echo json_encode($all_plugins); } } PrintPluginList($_GET[’op’]); ?> This is a PowerShell script to automate some…

Read More

MS SQL Import Txt File

Posted on October 15, 2013October 26, 2015

sqlcmd -i nonMemLoad.txt -o sqllog.txt Reference: http://msdn.microsoft.com/en-us/library/ms170572.aspx Originally Posted on October 15, 2013Last Updated on October 26, 2015 All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and…

Read More

Extract Links From Word

Posted on March 13, 2014October 26, 2015

Sub ExtractURL() ‘ ‘ ExtractURL Macro ‘ ‘ Dim oHpl As Hyperlink Dim dAD As Document ‘active document Dim dDc2 As Document ‘new document Dim rngStory As StoryRanges Dim rng As Range Dim intFootnotes As Integer Set dAD = ActiveDocument Set dDc2 = Documents.Add Selection.TypeText "Hyperlinks found in main document…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes