Calling MS-Windows associated file to run the Windows progra
Posted: Fri Aug 05, 2016 2:20 pm
Hi, I am trying to (either with Javascript or with PHP or both for that matter) (while running under XAMPP) call/open a file which is associated with a Windows program such that the windows program is called to read/process the file. In my case the windows program is "Band In A Box" and the file can be any file that "Band In A Box" typically runs. Does anyone know where I can get some examples of how to do this.
To give you an idea of what I am hoping for, In MS-Access the command is shown below ("Me.fldS_BIAB_File" contains the file name).
Application.FollowHyperlink "C:\Access\BIAB\" & Me.fldS_BIAB_File, , True
or
'MyAppID = Shell("C:\Program Files (x86)\Microsoft Office\Office12\Excel.exe C:\Access\MyExcellFile", vbMaximizedFocus)
I tried this google search "opening a windows associated file with javascript" and 'opening a windows associated file with php" but they come back with opening php files.
Thanks,
John
To give you an idea of what I am hoping for, In MS-Access the command is shown below ("Me.fldS_BIAB_File" contains the file name).
Application.FollowHyperlink "C:\Access\BIAB\" & Me.fldS_BIAB_File, , True
or
'MyAppID = Shell("C:\Program Files (x86)\Microsoft Office\Office12\Excel.exe C:\Access\MyExcellFile", vbMaximizedFocus)
I tried this google search "opening a windows associated file with javascript" and 'opening a windows associated file with php" but they come back with opening php files.
Thanks,
John