Jump to content

Recommended Posts

Posted

I am am PC hardware and Network guy who is just getting his feet wet with AutoIT. I am trying to gather patient info, then I would like to use that info to create a directory named patient last name first name DOB. (EX. Jones Bob 09-16-76) I have spent some time trying to figure this out with no luck. I would be very appreciative of any help. Thanks! Below is what I have thus far....

$Patient_Last_Name = InputBox("Please enter", "Patient Last Name", "", "", -1, -1, 0, 0)
$Patient_First_Name = InputBox("Please enter", "Patient First Name", "", "", -1, -1, 0, 0)
$Patient_DOB = InputBox("Please enter", "Patient DOB", "", "", -1, -1, 0, 0)
MsgBox (64, "Patient Folder Wizard", $Patient_Last_Name)
MsgBox (64, "Patient Folder Wizard", $Patient_First_Name)
MsgBox (64, "Patient Folder Wizard", $Patient_DOB)
DirCreate C:\Documents and Settings\Eric\Desktop\AIT\$Patient_Last_Name
Posted (edited)

$Patient_Last_Name = InputBox("Please enter", "Patient Last Name", "", "", -1, -1, 0, 0)
$Patient_First_Name = InputBox("Please enter", "Patient First Name", "", "", -1, -1, 0, 0)
$Patient_DOB = InputBox("Please enter", "Patient DOB", "", "", -1, -1, 0, 0)
MsgBox (64, "Patient Folder Wizard", $Patient_Last_Name)
MsgBox (64, "Patient Folder Wizard", $Patient_First_Name)
MsgBox (64, "Patient Folder Wizard", $Patient_DOB)
DirCreate("C:\Documents and Settings\Eric\Desktop\AIT\" & $Patient_Last_Name & ", " & $Patient_First_Name &  ", " & $Patient_DOB)

Edited by narayanjr
Posted

I am am PC hardware and Network guy who is just getting his feet wet with AutoIT. I am trying to gather patient info, then I would like to use that info to create a directory named patient last name first name DOB. (EX. Jones Bob 09-16-76) I have spent some time trying to figure this out with no luck. I would be very appreciative of any help. Thanks! Below is what I have thus far....

$Patient_Last_Name = InputBox("Please enter", "Patient Last Name", "", "", -1, -1, 0, 0)
$Patient_First_Name = InputBox("Please enter", "Patient First Name", "", "", -1, -1, 0, 0)
$Patient_DOB = InputBox("Please enter", "Patient DOB", "", "", -1, -1, 0, 0)
MsgBox (64, "Patient Folder Wizard", $Patient_Last_Name)
MsgBox (64, "Patient Folder Wizard", $Patient_First_Name)
MsgBox (64, "Patient Folder Wizard", $Patient_DOB)
DirCreate C:\Documents and Settings\Eric\Desktop\AIT\$Patient_Last_Name
$Fldr_Name = "C:\Documents and Settings\Eric\Desktop\AIT\"
$Fldr_Name &= $Patient_Last_Name & Chr(32) & $Patient_First_Name & Chr(32) & $Patient_DOB
If NOT FileExists($Fldr_Name) Then DirCreate($Fldr_Name)

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...