This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The script fixes SharePoint Template Files (STP) so that they can be imported while preserving Lookup fields. | |
# The STP files are first extracted, the GUIDs are replaced with the corresponding list paths, and subsequently repackaged. | |
# All dependent SharePoint Template files must be located in the folder where the script is run. | |
$templatePath=(Get-Item .).FullName | |
# retrieve list of stp files | |
$lists = Get-ChildItem -Path $templatePath -Filter *.stp -File -Name| ForEach-Object { | |
[System.IO.Path]::GetFileNameWithoutExtension($_) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param([Parameter(Mandatory)]$path) | |
$ErrorActionPreference = "Stop" | |
# top path that we want to keep in the source code zip file | |
$subdir = "" | |
# location of the zip file | |
$ZipFile = (Get-Item -Path ".\").FullName+"\"+(Split-Path $path -leaf)+".zip" | |
# change current directory | |
Set-Location "$path" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
convert -density 384 -background transparent -define icon:auto-resize -colors 256 icon.svg icon.ico |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ProgramFilesDir = RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir") | |
Run($ProgramFilesDir & "\2gis\3.0\grym.exe") | |
; Close start banner | |
Local $hWnd1 = WinWait("[REGEXPTITLE:(?i)(.* - Городская информационная система 2ГИС)]") | |
While Not ControlCommand($hWnd1,"","Button1","IsEnabled",'') | |
Sleep(100) | |
WEnd | |
WinClose($hWnd1) | |
; Hide banners |