Powershell,批处理,模板,common.ps1,c
数据库-mysql教程
微信早起打卡挑战源码,vscode的终端怎么打开,ubuntu 图像开发,tomcat切换用户,爬虫大全图片,php 字符串拼接 乱码,新津做推广的seo服务,自媒体管理网站模板,thinkphp模板 时间lzw
common.ps1 cls; #Global is public#Script is internal#Script is Script#Local is current stack level#Numbered scopes are from 0..N where each step is up to stack level (and 0 is Local)$Script:PSScriptRoot =Split-Path -Parent $MyInvocation.My网站源码交易平台查询,ubuntu 修改日期,tomcat反应慢怎么办,爬虫 瑞数,php应用开发在线课程,seo国内现状lzw
maven 源码下载,vscode vue拓展,ubuntu mat,tomcat 依赖jvm,代码sqlite统计表,jquery加载页面插件,淘宝h5前端框架,猫影视 爬虫用不了,php模块开启,金华谷歌seo公司,网站程序域名授权,txt链接网页接口授权,图像模板匹配lzw
common.ps1cls; #Global is public#Script is internal#Script is Script#Local is current stack level#Numbered scopes are from 0..N where each step is up to stack level (and 0 is Local)$Script:PSScriptRoot =Split-Path -Parent $MyInvocation.MyCommand.Definition$Script:strDate = Get-Date -Format "yyyyMMdd"#logging path and method$Script:logfile = "$PSScriptRoot\log$($strDate).txt"$Script:log = {$input|Tee-Object -FilePath $logfile -Append}#commen$Script:rem = {$Script:i = '';1..75|%{$i += '-'};$i } #start&$rem|&$logtry{ #your ps code $psversiontable|&$log $Script:pss = ps $Script:i = 0 foreach ($ps in $pss) { Write-Progress -Activity "on processing..." -status "$ps...$($i.tostring() + '/' + $pss.count.tostring())" -percentcomplete ($i++/($pss.count)*100) sleep 1 }}catch { "At $(Get-Date -Format “yy-MM-dd HH:mm:ss”) error occured:$_.Exception"|&$log}finally{ &$rem|&$log "Finish deploying at $(Get-Date -Format “yy-MM-dd HH:mm:ss”)"|&$log }notepad "$logfile"
start.bat
@echo off @cd %cd%@set vers=2.0:Entrance cls goto Start :Start title APOMS SQL Deployment Guide echo Please select an option from the list with the corresponding key echo ---------------------------------------------------------------- echo [1] Test echo [2] Exit ech【本文来自鸿网互联 (http://www.68idc.cn)】o ---------------------------------------------------------------- CHOICE /c 12 /M "Choice->" if errorlevel 2 GOTO exit if errorlevel 1 GOTO GenA rem Generate Append:GenAcls echo starting powershell,Generate Appendpowershell -file %cd%\common.ps1 -nologo -version %vers% -Mtaecho finishedrem timeout 2 pausegoto :Entrance rem Generate Merge :GenMcls echo starting powershell,Generate Merge rem powershell -file %cd%\module\GenerateMerge.ps1 -nologo -version %vers% -Mtaecho finishedpausegoto :Entrancerem Depoly:Depo cls echo Caching sqlcmd files to local.powershell -file %cd%\Mail\Send-AvEmail.ps1 -nologo -version %vers% -Mtaecho finishedpausegoto :Entrancerem clear:cleacls echo clearing CachedSQLSrem powershell -file %cd%\module\ClearCachedSQLS.ps1 -nologo -version %vers% -Mtaecho finishedpause goto :Entrancerem Set-ExecutionPolicy -ExecutionPolicy remotesigned:setPcls echo Set-ExecutionPolicy -ExecutionPolicy remotesignedpowershell -file %cd%\module\Set-ExecutionPolicy.ps1 -nologo -version %vers% -Mtaecho finishedpause goto :Entrancerem Config :Conf cls echo configuring powershell inittial parameters:echo edit and save to contiue.rem echo editing %cd%\module\configrem notepad %cd%\module\configecho editing %cd%\module\config_sysnotepad "%cd%\module\config_sys"echo testing config_syspowershell -file %cd%\module\TestConfig.ps1 -nologo -version %vers% -Mtapausegoto :Entrancerem Help:Helpcls @type %cd%\module\help.txtpause goto :Entrancerem SqlCMD:SqlCcls powershell -file %cd%\module\GenerateSqlcmdFiles-force.ps1 -nologo -version %vers% -Mtapause goto :Entrancerem default:N cls echo Invalid Selection! Try again @type %cd%\module\help.txtpause goto :Entrance rem exit:Exit exit