Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADAM API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WBA
ADAM API
Commits
aa93cbe3
Commit
aa93cbe3
authored
1 year ago
by
Jannis Hahn
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
98e66458
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Beispielprojekt/ADAM_Initialize.ps1
+34
-0
34 additions, 0 deletions
Beispielprojekt/ADAM_Initialize.ps1
with
34 additions
and
0 deletions
Beispielprojekt/ADAM_Initialize.ps1
0 → 100644
+
34
−
0
View file @
aa93cbe3
function
Initialize
{
[
CmdletBinding
()]
param
()
#Excel-Modul
write-verbose
"Es werden die benötigten Module geladen und ggf. Installiert.."
$GetModule
=
Get-Module
ImportExcel
-ListAvailable
-ErrorAction
SilentlyContinue
if
(
$GetModule
-eq
$null
)
{
write-verbose
"Modul existiert noch nicht und wird nun installiert"
Install-Module
ImportExcel
-Confirm
:
$false
write-verbose
"Modul wurde installiert und wird nun importiert"
Import-Module
ImportExcel
}
else
{
write-verbose
"Modul existiert schon und wird nun importiert"
Import-Module
ImportExcel
}
write-verbose
"Module geladen!"
# Testen, ob das Excel-File existiert
if
(
$
(
Test-Path
-Path
$xlsxpath
)
-eq
$true
)
{
write-verbose
"Excel-Datei existiert bei >
$xlsxpath
< und wird im laufe des Skriptes benutzt"
}
else
{
write-host
"Excel-Datei konnte bei >
$xlsxpath
< nicht gefunden werden. Bitte verschieben Sie das Excel-File oder ändern Sie den Dateipfad"
break
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment