I have a windows service that uses a FileSystemWatcher
to see if there are pdf files moved to a folder, and then, when a user moves a pdf file into that folder, the service executes MyProcess
. The pdf filename is like this: name_doctorcode.pdf
.
code:
Private static void MyProcess(string pdfname)
{
string sDoctorCode= getdoctorcode(pdfname); //brings doctor code from filename
bool foundDoctorCode= FindDoctorCode(sDoctorCode); //searchs into a data container (database, txt,etc..) to see if the doctor code is found
if(foundDoctorCode==false)
{
// HELP to call exe file to prompt user to enter a correct doctorcode
//pass the doctorcode to a variable
string sNewDoctorCode = doctorCodeFromExe;
}
}
Can you help me to do this?
Any guide,tutorial or code?
Thanks