Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set DropDirectory=%1
- echo %1
- xcopy /e /Y D:\Deploy\YourDirectory %DropDirectory%\%CCNetLabel%\YourProject\ /EXCLUDE:Excludes.txt
- @echo off
- > %DropDirectory%\%CCNetLabel%\YourProject\YourProject\build.txt echo %CCNetLabel%
- rename %DropDirectory%\%CCNetLabel%\YourProject\YourProject\web.config web.config.build
- rar a -r -ep1 %DropDirectory%\%CCNetLabel%.rar %DropDirectory%\%CCNetLabel%\*.*
- @echo off
- > %DropDirectory%\script.txt echo open prototype.YourProject.com
- >> %DropDirectory%\script.txt echo supersecretuser
- >> %DropDirectory%\script.txt echo HappyUSER
- >> %DropDirectory%\script.txt echo cd YourProject
- >> %DropDirectory%\script.txt echo put %DropDirectory%\%CCNetLabel%.rar
- >> %DropDirectory%\script.txt echo bye
- start /w ftp.exe -s:%DropDirectory%\script.txt
- del %DropDirectory%\script.txt
- del %DropDirectory%\%CCNetLabel%.rar
- rmdir %DropDirectory%\%CCNetLabel% /S /Q
- cls
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement