Permalink
Browse files

Adicionando novos scripts

  • Loading branch information...
1 parent 1c6ed12 commit de6140ae36f2a55017de0b1deaa2fee5f35c452d @wallybh committed Feb 15, 2012
Showing with 19 additions and 0 deletions.
  1. +13 −0 deploy/Invoke-MsBuildPublish.ps1
  2. +6 −0 renameFiles.ps1
@@ -0,0 +1,13 @@
+Param(
+$WebProject = (throw "Parãmetro -WebProject deve ser informado"),
+$TargetFolder = (throw "Parâmetro -TargetFolder deve ser informado.")
+)
+Test-Path $WebProject
+Test-Path $TargetFolder
+if(-not(Test-Path $WebProject) -or -not(Test-Path $TargetFolder) )
+{
+ throw "-WebProject ou -TargetFolder não existe"
+}
+
+"msbuild /t:Build;PipelinePreDeployCopyAllFilesToOneFolder /p:Configuration=Debug;_PackageTempDir=$TargetFolder $WebProject"
+Invoke-Expression "msbuild /t:Build;PipelinePreDeployCopyAllFilesToOneFolder /p:Configuration=Debug;_PackageTempDir=$TargetFolder $WebProject"
View
@@ -0,0 +1,6 @@
+ $total = 0
+
+ ls ..\Desktop\word\media | ForEach-Object {if($_ -match "[0-9]{1,3}") { "Nome: $_ Numero: " + $matches[0]; $novoNome = "image" + ("{0:D8}" -f $matches[0]) + ".png"; $novoNome; $total += 1}}
+
+ #Rename-Item $_
+ $total

0 comments on commit de6140a

Please sign in to comment.