Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
Update ExportScript.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
TFinnerty22 authored Sep 15, 2017
1 parent 835a41e commit e884c68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ExportScript.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# The Folder to export from
#
$targetFolder = "Samples\TestFolder"
$targetFolder = "The JAMS folder path that you are exporting"

#
# Add the JAMS module
Expand All @@ -11,7 +11,7 @@ Import-Module JAMS
#
# Set the path of the first export which will just export job names and empty properties
#
$firstExportPath = "C:\Users\TimF.MVP\Desktop\SUPPORT\FirstExport.xml"
$firstExportPath = "Your first directory .xml"

#
# Get Jobs in the specified Folder recursively
Expand All @@ -31,6 +31,6 @@ foreach($obj in $jobList)
}
}
"</Jobs>" | Out-File $firstExportPath -Append utf8
$secondExportPath = "C:\Users\TimF.MVP\Desktop\SUPPORT\SecondExport.xml"
$secondExportPath = "Your second directory .xml"

Export-JAMSXml -InputObject $jobList -Path $secondExportPath
Export-JAMSXml -InputObject $jobList -Path $secondExportPath

0 comments on commit e884c68

Please sign in to comment.