T
technoknight
I am into PowerPoint Automation.
I am facing a peculiar problem. I have a PPT, PPTViewer 2003, AutoRun.lst &
my Application. I have all these 4 files stored in one folder. My Spplication
checks the location of the AutoRun.lst & the PPTVIewer.exe. Then it runs the
a command on shell/run as:
<path of pptviewer> /L <path of .lst file>
This makes the PPTViewer read the correspoding .lst file and run the ppt
name that is written in it.
Now, the problem is if the path of viewer or the path of .lst file contains
whitespace then it will not run the command. For eg. If I save all these
files on the desktop then the path wil be something like "C:\Documents and
Settings\Admin\Desktop\PPTViewer.exe". So here there are two whitespaces in
the PPTViewer path name. When I run this command on the run (shell) then I
get an error saying "Windows cannot find the file C:\Documents". It will just
take the path before the first whitespace. If I place these files under, say,
c:\ then it will run fine.
Can anyone please tell me how can I make my command run properly even if
there are whitespaces in the path for PPTViewer.exe.
Please help me...this is very urgent.
Thanks a lot in advance.
I am facing a peculiar problem. I have a PPT, PPTViewer 2003, AutoRun.lst &
my Application. I have all these 4 files stored in one folder. My Spplication
checks the location of the AutoRun.lst & the PPTVIewer.exe. Then it runs the
a command on shell/run as:
<path of pptviewer> /L <path of .lst file>
This makes the PPTViewer read the correspoding .lst file and run the ppt
name that is written in it.
Now, the problem is if the path of viewer or the path of .lst file contains
whitespace then it will not run the command. For eg. If I save all these
files on the desktop then the path wil be something like "C:\Documents and
Settings\Admin\Desktop\PPTViewer.exe". So here there are two whitespaces in
the PPTViewer path name. When I run this command on the run (shell) then I
get an error saying "Windows cannot find the file C:\Documents". It will just
take the path before the first whitespace. If I place these files under, say,
c:\ then it will run fine.
Can anyone please tell me how can I make my command run properly even if
there are whitespaces in the path for PPTViewer.exe.
Please help me...this is very urgent.
Thanks a lot in advance.