- Home
·
- Miscellaneous
·
- Shows how to save text to a file, restart windows, and add file to recent documents list on start b
Shows how to save text to a file, restart windows, and add file to recent documents list on start b
Shows how to save text to a file, restart windows, and add file to recent documents list on start bar.
Rate Shows how to save text to a file, restart windows, and add file to recent documents list on start b
(1(1 Vote))
open ("file path and filename goes here!") for append as 1
print #1, date
print #1, time
print #1, text1.text
close 1
'to reboot windows Declerations:
private const ewx_reboot as long = 2
private declare function exitwindowsex lib "user32" (byval dwoptions as long, byval dwreserved as long) as long
'Code:
lngresult = exitwindowsex (ewxshutdown, 0&)
'add file to recent documents list on start bar desclerations:
declare sub shaddtorecentdocs lib "shell32.dll" (byval uflags as long, byval pv as string)
'Code:
dim strnewfile as string
strnewfile = ("file path and file name goes here!")
call shaddtorecentdocs (2, strnewfile)
'to clear
call shaddtorecentdocs (2, vbnullstring)
Shows how to save text to a file, restart windows, and add file to recent documents list on start b Comments
No comments yet — be the first to post one!
Post a Comment