Hi,
This may not be the correct place to ask but I don't know where else to post this...I am tring to figure out why excel is not able to find a file with spaces when it is placed on an intranet server. I converted the filename/path to the MS DOS format and it runs fine locally (from the C:\) but when I try the same thing on the intranet server excel cant find the file.
I am using the correct MS-DOS name for the file because I rightclick on the file and go to properties to get the DOS filename in each folder (I know the same long filename may have a different DOS name when in different folders).
Here is the long name: \test test\test test.xls, I tried it in the commands below. Number 1) runs fine, number 2) is the one where excel cant find the file and number 3) says that it cannot be accessed, that it may be read-only.
What am I doing wrong???
1) WScript.Run "Excel.exe "C:\testte~1\TESTTE~1.xls"",1,True
2) WScript.Run "Excel.exe "\\testte~1\TESTTE~1.xls"",1,True
3) WScript.Run "Excel.exe "file:///\\testte~1\TESTTE~1.xls"",1,True
many thanks!
Jason
This may not be the correct place to ask but I don't know where else to post this...I am tring to figure out why excel is not able to find a file with spaces when it is placed on an intranet server. I converted the filename/path to the MS DOS format and it runs fine locally (from the C:\) but when I try the same thing on the intranet server excel cant find the file.
I am using the correct MS-DOS name for the file because I rightclick on the file and go to properties to get the DOS filename in each folder (I know the same long filename may have a different DOS name when in different folders).
Here is the long name: \test test\test test.xls, I tried it in the commands below. Number 1) runs fine, number 2) is the one where excel cant find the file and number 3) says that it cannot be accessed, that it may be read-only.
What am I doing wrong???
1) WScript.Run "Excel.exe "C:\testte~1\TESTTE~1.xls"",1,True
2) WScript.Run "Excel.exe "\\testte~1\TESTTE~1.xls"",1,True
3) WScript.Run "Excel.exe "file:///\\testte~1\TESTTE~1.xls"",1,True
many thanks!
Jason