I'm using NSBasic/CE 7.0 and I'm needing to copy a file, but I don't know how to copy using this program, but at the time I already have this:
AddObject "cecomdlg.commondialog.1", "ComSvDlg", 0, 0, 0, 0
Sub saveDialog()
ComSvDlg.CancelError = 0
ComSvDlg.DialogTitle = "Copy"
ComSvDlg.Filter = "All Files|*.*"
ComSvDlg.ShowSave
If Err.Number = 0 Then
txtFileName = ComSvDlg.FileName
MsgBox txtFileName
ElseIf Err.Number = 32755 Then
MsgBox "Canceled"
End If
KillFocus
End Sub
Sub mnuSave_Click
saveDialog
txtOutput.Text = ComSvDlg.FileName
End Sub
But one of the most important(copy) I don't know how to do. Could you help me to copy the file from \test.txt
to ComSvDlg.Filename
?