2
Answers

Automation GUI ,alternative to batch file

viva

viva

13y
3.1k
1

Hello

I am new to C# windows form.

I have some batch files which calls different function to execute flash loader GUI.When this batch file is executing it invoke flash loader GUI and keeps its result in test file.

Instead of writing batch file command on command line and remembering exact sysntax of each batch file.I want to prepare a GUI which will instruct to write command to execute those functions on flashloader (main gui)

My questions are
1) For this scenario do we need to use batch files which will use by testing GUI (Automation GUI) which will ultimately run by flashloader GUI (main GUI).

2) If I am selecting test to run batch file on GUI then how it will actually execute that batch file??

Please clear my understanding so that I can work further.

Viva
Answers (2)
0
Javeed M Shaikh

Javeed M Shaikh

NA 7.8k 69.7k 11y
yes you can use the following for file handling:

include this 
System.IO;

you have the following methods:

File.Exists --> to check if the file exists
File.Delete --> to delete the file
File.Open --> to open the file.