G
Guest
I have a batch file that opens a Windows Explorer window to a path based on
two typed-in parameters. I would like to add a command button to my access
form that runs this batch file and enters the two required parameters from
data located in the access form. (confused yet?) I'm using the shell command
to run the batch, but then I get stuck. I want to use the "SendKeys"
command, but I don't think that the data can vary. Can anyone help me out?
Thanks, -Steve
Batch file content:
@ECHO OFF
CLS
ECHO ENTER YEAR
SET /p T1=
ECHO ENTER PROJECT NUMBER
SET /p T2=
EXPLORER/E,C:\%t1%\%t2%
Access Event Content: (so far)
Private Sub Open_C_Drive_File_Click()
Shell ("C:\Open_Explorer.bat")
SendKeys "tbl.Project.ProjectYear" {ENTER} "tbl.Project.ProjectID" {ENTER}
End Sub
two typed-in parameters. I would like to add a command button to my access
form that runs this batch file and enters the two required parameters from
data located in the access form. (confused yet?) I'm using the shell command
to run the batch, but then I get stuck. I want to use the "SendKeys"
command, but I don't think that the data can vary. Can anyone help me out?
Thanks, -Steve
Batch file content:
@ECHO OFF
CLS
ECHO ENTER YEAR
SET /p T1=
ECHO ENTER PROJECT NUMBER
SET /p T2=
EXPLORER/E,C:\%t1%\%t2%
Access Event Content: (so far)
Private Sub Open_C_Drive_File_Click()
Shell ("C:\Open_Explorer.bat")
SendKeys "tbl.Project.ProjectYear" {ENTER} "tbl.Project.ProjectID" {ENTER}
End Sub