| 3901 |
hWnd = GetDlgItem(dlg, IDC_SENDFILE_EDIT); |
hWnd = GetDlgItem(dlg, IDC_SENDFILE_EDIT); |
| 3902 |
SendMessage(hWnd, WM_GETTEXT , sizeof(sendfile), (LPARAM)sendfile); |
SendMessage(hWnd, WM_GETTEXT , sizeof(sendfile), (LPARAM)sendfile); |
| 3903 |
if (sendfile[0] != '\0') { |
if (sendfile[0] != '\0') { |
| 3904 |
|
// 送信パスを取り出し、teraterm.ini も合わせて更新する。 |
| 3905 |
hWnd = GetDlgItem(dlg, IDC_SENDFILE_TO); |
hWnd = GetDlgItem(dlg, IDC_SENDFILE_TO); |
| 3906 |
SendMessage(hWnd, WM_GETTEXT , sizeof(sendfiledir), (LPARAM)sendfiledir); |
SendMessage(hWnd, WM_GETTEXT , sizeof(sendfiledir), (LPARAM)sendfiledir); |
| 3907 |
strncpy_s(pvar->ts->ScpSendDir, sizeof(pvar->ts->ScpSendDir), sendfiledir, _TRUNCATE); |
strncpy_s(pvar->ts->ScpSendDir, sizeof(pvar->ts->ScpSendDir), sendfiledir, _TRUNCATE); |
| 3908 |
|
|
| 3909 |
SSH_start_scp(pvar, sendfile, sendfiledir); |
SSH_start_scp(pvar, sendfile, sendfiledir); |
| 3910 |
//SSH_scp_transaction(pvar, "bigfile30.bin", "", FROMREMOTE); |
//SSH_scp_transaction(pvar, "bigfile30.bin", "", FROMREMOTE); |
| 3911 |
EndDialog(dlg, 1); // dialog close |
EndDialog(dlg, 1); // dialog close |
| 3914 |
return FALSE; |
return FALSE; |
| 3915 |
|
|
| 3916 |
case IDCANCEL: |
case IDCANCEL: |
| 3917 |
|
// 送信パスを取り出し、teraterm.ini も合わせて更新する。 |
| 3918 |
|
hWnd = GetDlgItem(dlg, IDC_SENDFILE_TO); |
| 3919 |
|
SendMessage(hWnd, WM_GETTEXT , sizeof(sendfiledir), (LPARAM)sendfiledir); |
| 3920 |
|
strncpy_s(pvar->ts->ScpSendDir, sizeof(pvar->ts->ScpSendDir), sendfiledir, _TRUNCATE); |
| 3921 |
|
|
| 3922 |
EndDialog(dlg, 0); // dialog close |
EndDialog(dlg, 0); // dialog close |
| 3923 |
return TRUE; |
return TRUE; |
| 3924 |
|
|