Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MailADM 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
Container registry
Model registry
Operate
Environments
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
MailADM API
Commits
ad49ff09
Commit
ad49ff09
authored
4 years ago
by
Christian Maintz
Browse files
Options
Downloads
Patches
Plain Diff
Update Load-Modules.ps1; Add Test, ob die Excel-Datei existiert
parent
cc6a30c2
No related branches found
No related tags found
1 merge request
!5
Reorganisation und Erweiterung um eine Beispielanwendung
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Beispielprojekt/Load-Modules.ps1
+11
-0
11 additions, 0 deletions
Beispielprojekt/Load-Modules.ps1
with
11 additions
and
0 deletions
Beispielprojekt/Load-Modules.ps1
+
11
−
0
View file @
ad49ff09
...
@@ -20,4 +20,15 @@ function Load-Modules
...
@@ -20,4 +20,15 @@ function Load-Modules
Import-Module
ImportExcel
Import-Module
ImportExcel
}
}
write-verbose
"Module geladen!"
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