Hi All! I'm new to programing and VB ( Well, did do a bit of batch file work back in the bad ol' day of DOS!).

Anyway, I need some help with the following.

I'm working on a program to export a registry key and save the .REG file. Right now it saves the file to a specific path and file name. The part I need help with is having the user name the file. It would still be saved to the specific path. I was thinking about calling a form with a text box where the user would input the filename (except the ".REG" which would be hard coded.) and click on a button to save the file.

(BTW- This will be running from a thumb drive. Thus the relative path.)

Right now the code I'm using is this (short & simple!):

VB Code:
  1. 'Registry Key Backup - This Works.
  2. Private Sub cmdBackup_Click()
  3. 'This will export the registery info from (HKEY_LOCAL_MACHINE\Software\MyApp\IIP\Option)
  4. 'to the app.path
  5. Shell "regedit /e ./Backups/OptionKeys.reg HKEY_LOCAL_MACHINE\Software\MyApp\IIP\Option"
  6. Call MsgBox("The Option Key backup has been saved.    ", vbOKOnly + vbInformation + vbApplicationModal + vbDefaultButton1, "FILE SAVE")
  7. End Sub

Thanks for any help & suggestions!