OSDN Git Service

3c0a45913bc1fc68bb4124c95ea78805eb2b116b
[fast-forth/master.git] / config / scite / AS_MSP430 / Send_file.4th_to_target.bat
1 @ECHO OFF
2 if not exist %~dpn1.4th goto error
3
4 if "%2"=="" GOTO testend
5 if /I "%2"=="ECHO" GOTO testend
6 if /I "%2"=="NOECHO" GOTO testend
7
8 :error
9 start %~d1\config\scite\AS_MSP430\error4th.bat
10 exit
11
12
13
14
15
16 :testend
17 taskkill /F /IM ttermpro.exe 1> NULL 2>&1
18 @"C:\Program Files\teraterm\ttpmacro.exe" /V %~d1\config\scite\AS_MSP430\SendFile.ttl %~dpn1.4th /C %2  1> NULL 2>&1
19 if ERRORLEVEL 1 goto nextcmd
20 exit
21
22 :nextcmd
23 del null
24 @"C:\Program Files (x86)\teraterm\ttpmacro.exe" /V %~d1\config\scite\AS_MSP430\SendFile.ttl %~dpn1.4th /C %2
25 :eof
26 exit
27
28
29
30 rem %~dpn1.4th is the file to send described as drive\path\name.4th of param %1
31 rem %~d1 is the drive of param %1
32
33
34
35