Hi
I have an app that generates some scripts which are saved as text files (although the extention is .sql). What I would like the application to do is open the file in NotePad once it has been saved.
How do I launch Notepad and have it open the file?
My current code for saving the file is....
Many thanks
Mych
I have an app that generates some scripts which are saved as text files (although the extention is .sql). What I would like the application to do is open the file in NotePad once it has been saved.
How do I launch Notepad and have it open the file?
My current code for saving the file is....
Code:
Dim strNotepadFile As String
GlbCRLF = Chr$(13) & Chr$(10)
strNotepadFile = GlbSavePath & txtRef & "_" & txtSuffix & ".sql"
txtScript = "declare" & GlbCRLF
txtScript = txtScript & .......
Open strNotepadFile For Output As #1
Print #1, txtScript
Close #1
Many thanks
Mych