A
antoni
Would anyone know why this sample code does not work
properly under XP. It seems that the spaces in the path
name are not interpreted correctly.
I need to use the full path because I have two versions of
Office on my computer.
Thanks for any suggestion.
**************************************************
<job id="Test">
<script language="Vbscript">
dim WshShell, AcPath
dim Return
'The following gives a file not found
'AcPath = "C:\Program files\Microsoft office\office\"
'The following displays the folder content
AcPath = """C:\Program files\Microsoft office\office\"""
'The following opens the default version of Access
'AcPath = ""
msgbox AcPath
set WshShell = Wscript.CreateObject("WScript.Shell")
Return = WshShell.run (AcPath & "msaccess.exe",1,true)
MSGBOX "The End"
</script>
</job>
properly under XP. It seems that the spaces in the path
name are not interpreted correctly.
I need to use the full path because I have two versions of
Office on my computer.
Thanks for any suggestion.
**************************************************
<job id="Test">
<script language="Vbscript">
dim WshShell, AcPath
dim Return
'The following gives a file not found
'AcPath = "C:\Program files\Microsoft office\office\"
'The following displays the folder content
AcPath = """C:\Program files\Microsoft office\office\"""
'The following opens the default version of Access
'AcPath = ""
msgbox AcPath
set WshShell = Wscript.CreateObject("WScript.Shell")
Return = WshShell.run (AcPath & "msaccess.exe",1,true)
MSGBOX "The End"
</script>
</job>