I am using the in-built Shell() function to call a VB6 routine and the .exe file lies in a folder that has spaces. For example "My Documents" is embedded within my path for the .exe file that I am executing. Because of the space between "My" and "Documents", the program tells me that it could not find the file. However, if I move my entire project to the root folder where there is no space to my folder name, the project executes without any problem. I tried writing a routine that would add inverted quotes (") before and after the folder "My Documents" but to no avail. Can someone help me know how to get rid of this problem?
P.S. the reason why I am calling a VB6 routine is because I don't have a compatible .Net driver to connect to DB2 database.
P.S. the reason why I am calling a VB6 routine is because I don't have a compatible .Net driver to connect to DB2 database.