I have a simple JavaScript that is causing me headaches.
Here is the code
this works perfectly if the structure of the path is like this
\\\\server\\sharename\\MailMerge\\mailmerge.exe
however if there is a space in the name like this:
\\\\server\\share name\\Mail Merge\\mailmerge.exe
it gives the error The Network path was not found.
I have scoured this site and the internet to no avail i am hoping someone can help me format the path so that it can have spaces in it as this will be the case.
Thanks everyone for your help
To go where no programmer has gone before.
Here is the code
Code:
<script language="javascript" type="text/javascript">
function RunProg(CommandLine)
{
var ws = new ActiveXObject("WScript.Shell");
ws.run(CommandLine,1,false);
return;
}
</script>
\\\\server\\sharename\\MailMerge\\mailmerge.exe
however if there is a space in the name like this:
\\\\server\\share name\\Mail Merge\\mailmerge.exe
it gives the error The Network path was not found.
I have scoured this site and the internet to no avail i am hoping someone can help me format the path so that it can have spaces in it as this will be the case.
Thanks everyone for your help
To go where no programmer has gone before.