c# - How Do You Programmatically Go To The End Of The A NotePad File If Opened By A Windows Form Application -
i creating windows form application , want user able open log file on request, after selecting option on menu strip.
i can open file within notepad recent entries @ end of file. how make application start @ end of file save user job?
my current code:
public static void opencurrentlog() { process process = new process(); processstartinfo startinfo = new processstartinfo(); startinfo.filename = environment.getenvironmentvariable("windir").tostring() + "\\system32\\notepad.exe"; startinfo.arguments = environment.getfolderpath(environment.specialfolder.applicationdata) +"\\" appname + "\\" + "\\logfiles\\logfile.log"; startinfo.windowstyle = processwindowstyle.normal; process.startinfo = startinfo; process.start(); process.waitforexit(); }
any appreciated. relatively new c#.
if send ctrl (^) - end ({end}) through move bottom of notepad file
sendkeys.send("^{end}");
Comments
Post a Comment