devel
| Line | |
|---|
| 1 | @Echo off
|
|---|
| 2 | REM Copia el archivo que se le da como argumento %1 hacia el bin de ActiveTol
|
|---|
| 3 | REM Se usa en:
|
|---|
| 4 | REM * el postbuild event de tollbi.vcproj para copiar tollib.dll
|
|---|
| 5 | REM * Sel postbuild event de tolcon.vcproj para copiar tol.exe
|
|---|
| 6 |
|
|---|
| 7 | If "%1" == "" (
|
|---|
| 8 | Echo Se requiere argumento 1
|
|---|
| 9 | Goto Uso
|
|---|
| 10 | )
|
|---|
| 11 | If Not Exist %1 (
|
|---|
| 12 | Echo %1 no existe
|
|---|
| 13 | Goto End
|
|---|
| 14 | )
|
|---|
| 15 |
|
|---|
| 16 | If "%2" == "" (
|
|---|
| 17 | Echo Se requiere argumento 2
|
|---|
| 18 | Goto Uso
|
|---|
| 19 | )
|
|---|
| 20 | If Not Exist %2\nul (
|
|---|
| 21 | Echo Directorio %2 no existe
|
|---|
| 22 | Goto End
|
|---|
| 23 | )
|
|---|
| 24 | Goto Cont
|
|---|
| 25 |
|
|---|
| 26 | :Uso
|
|---|
| 27 | Echo uso -- postbuild bin_origen destino
|
|---|
| 28 | Pause
|
|---|
| 29 | Goto End
|
|---|
| 30 |
|
|---|
| 31 | :Cont
|
|---|
| 32 | @ECHO xcopy /F /Y %1 %2
|
|---|
| 33 | xcopy /F /Y %1 %2
|
|---|
| 34 | If errorlevel 1 (
|
|---|
| 35 | Echo Error en la copia
|
|---|
| 36 | Pause
|
|---|
| 37 | )
|
|---|
| 38 |
|
|---|
| 39 | :End |
|---|
Note: See
TracBrowser
for help on using the repository browser.