Menu

[55dae9]: / sandbox / sqliteSandbox.ps1  Maximize  Restore  History

Download this file

18 lines (16 with data), 585 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
$scriptDir = 'C:\ProgramData\Syncro\live\scripts\'
$dataDir = $scriptDir + 'data\'
$d = 1
$dbName = 'test.slqlite'
$database = '' # full path
#
# check for scriptDir & dataDir:
#
if (-NOT (Test-Path $scriptDir)) {
if ($d) { Write-Host "scriptDir: $scriptDir does NOT exist! Creating..." }
New-Item -Path $scriptDir -ItemType Directory > $null # only if run as SYSTEM
}
if (-NOT (Test-Path $dataDir)) {
if ($d) { Write-Host "dataDir: $dataDir does NOT exist! Creating..." }
New-Item -Path $dataDir -ItemType Directory > $null # only if run as SYSTEM
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.