I need to determine if OUTLOOK.EXE is available.
As a test in using adir, this works:
STORE "D:\Client\books.exe" TO e_E_path
&& no spaces, names <= 8 positions
nl_found = adir(p_tempdir,(e_E_path))
These do not work:
STORE "C:\Program Files\Microsoft
office\Office\OUTLOOK.EXE" TO e_E_path
nl_found = adir(p_tempdir,'&e_E_path')
nl_found = adir(p_tempdir,('&e_E_path'))
nl_found = adir(p_tempdir,&e_E_path)
nl_found = adir(p_tempdir,(e_E_path))
nl_found = adir(p_tempdir,(&e_E_path))
OR
STORE '"C:\Program Files\Microsoft
Office\Office\OUTLOOK.EXE"' TO e_E_path
nl_found = adir(p_tempdir,'&e_E_path')
nl_found = adir(p_tempdir,&e_E_path)
nl_found = adir(p_tempdir,('&e_E_path'))
nl_found = adir(p_tempdir,(&e_E_path))
nl_found = adir(p_tempdir,(e_E_path))
So, in testing FILE() with the same STOREs, these did not work:
If File('&e_E_path')
If File(&e_E_path)
Any suggestions on how to get adir and/or file() to work with spaces or names > 8 positions.
Thanks in advance
As a test in using adir, this works:
STORE "D:\Client\books.exe" TO e_E_path
&& no spaces, names <= 8 positions
nl_found = adir(p_tempdir,(e_E_path))
These do not work:
STORE "C:\Program Files\Microsoft
office\Office\OUTLOOK.EXE" TO e_E_path
nl_found = adir(p_tempdir,'&e_E_path')
nl_found = adir(p_tempdir,('&e_E_path'))
nl_found = adir(p_tempdir,&e_E_path)
nl_found = adir(p_tempdir,(e_E_path))
nl_found = adir(p_tempdir,(&e_E_path))
OR
STORE '"C:\Program Files\Microsoft
Office\Office\OUTLOOK.EXE"' TO e_E_path
nl_found = adir(p_tempdir,'&e_E_path')
nl_found = adir(p_tempdir,&e_E_path)
nl_found = adir(p_tempdir,('&e_E_path'))
nl_found = adir(p_tempdir,(&e_E_path))
nl_found = adir(p_tempdir,(e_E_path))
So, in testing FILE() with the same STOREs, these did not work:
If File('&e_E_path')
If File(&e_E_path)
Any suggestions on how to get adir and/or file() to work with spaces or names > 8 positions.
Thanks in advance