|
-
Northcode,
I had everything working fine when I had the pdf file in the same directory as the .exe file. I went one step further and add the "DOSTART" and everything worked great, even on a Win 7 machine. Now the trouble starts, I want to put the pdf files in a folder in the director, but when I add "files\charts.pdf" to the action script it changes it to "files\\harts.pdf". And then I get an error. I tried several different charactors in the script and it won't change them. just when I use the "\". Is this a bug or is there another charactor used ?
-
Lifetime Friend of Site Staff
You need to use "files\\charts.pdf" because the \ in quotes is treated as a special character. It marks the start of an escape sequence. You can read all the dirty details in String Literals vs. String Values on my blog.
-
WOW, it works now. It is amazing how something so little can cause such a road block.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|