Problem: Link to a DOS batchfile does not work after saving and reopen
Strange: But when I take one of the .bat-links and just do the linking process again... then (going into select mode) all the other links in the document work too... but only until I save and reopen.
Thanks ahead for any help in this matter...
Link to DOS-batch not working
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
Ivan - Tracker Software
- Site Admin
- Posts: 3603
- Joined: Thu Jul 08, 2004 10:36 pm
Re: Link to DOS-batch not working
Which build number of the viewer do you use?
PDF-XChange Co Ltd. (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
-
tim13
- User
- Posts: 11
- Joined: Sat Dec 13, 2008 2:46 am
Re: Link to DOS-batch not working
My XChange is Version 2.0 (Build 41.5) - I installed also the latest (it says 2.0 (Build 42.0) [beta]) but no difference in this matter...
As said before, when working inside XChange on the bat-links and switching to the select mode it works, but not when just opening the (saved) documents in XChange and clicking the bat-links.
When the link is working it goes this way:
1.) Over the link a hand-symbol appears, also the address of the bat-file
2.) When the link is clicked... for a second a DOS-window pops up and the bat-content is triggered
When the link is NOT working it goes this way:
1.) Over the link a hand-symbol appears, also the address of the bat-file
2.) When the link is clicked... for about half a second a DOS-window pops up and the bat-content is NOT triggered
The bat-files are okay, when I click on them in a file-manager they work fine.
As said before, when working inside XChange on the bat-links and switching to the select mode it works, but not when just opening the (saved) documents in XChange and clicking the bat-links.
When the link is working it goes this way:
1.) Over the link a hand-symbol appears, also the address of the bat-file
2.) When the link is clicked... for a second a DOS-window pops up and the bat-content is triggered
When the link is NOT working it goes this way:
1.) Over the link a hand-symbol appears, also the address of the bat-file
2.) When the link is clicked... for about half a second a DOS-window pops up and the bat-content is NOT triggered
The bat-files are okay, when I click on them in a file-manager they work fine.
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: Link to DOS-batch not working
Hello Tim,
I could not help with this matter but will draw the attention of the dev guys here, and we will try to find a solution.
Stefan
I could not help with this matter but will draw the attention of the dev guys here, and we will try to find a solution.
Stefan
-
tim13
- User
- Posts: 11
- Joined: Sat Dec 13, 2008 2:46 am
Re: Link to DOS-batch not working
Thanks so long!
And maybe I better give you some additional infos:
The .bat-files all have one line of text for CLAMP, a program to start winamp-files at a set time.
For example this bat-text: CLAMP /LOADNEW "talking.mp3" /PLAY /JUMP 57000
makes CLAMP to start Winamp with talking.mp3 at exactly sec 57.
All triggered from inside PDF and there would be much more potential...
(CLAMP is available at http://membres.lycos.fr/clamp/)
And maybe I better give you some additional infos:
The .bat-files all have one line of text for CLAMP, a program to start winamp-files at a set time.
For example this bat-text: CLAMP /LOADNEW "talking.mp3" /PLAY /JUMP 57000
makes CLAMP to start Winamp with talking.mp3 at exactly sec 57.
All triggered from inside PDF and there would be much more potential...
(CLAMP is available at http://membres.lycos.fr/clamp/)
-
Ivan - Tracker Software
- Site Admin
- Posts: 3603
- Joined: Thu Jul 08, 2004 10:36 pm
Re: Link to DOS-batch not working
Thanks, will check now.
PDF-XChange Co Ltd. (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
-
tim13
- User
- Posts: 11
- Joined: Sat Dec 13, 2008 2:46 am
Re: Link to DOS-batch not working
I went into this problem again, recorded the screen as screencast to see in slow motion what´s going on, when NOT working properly...
The menu of the DOS box says 'C:\WINDOWS\system32\cmd.exe'
This error message inside the DOS-Box:
'CLAMP is not recognized as an internal or external command, operable program or batch file'
The menu of the DOS box says 'C:\WINDOWS\system32\cmd.exe'
This error message inside the DOS-Box:
'CLAMP is not recognized as an internal or external command, operable program or batch file'
-
Paul - PDF-XChange
- Site Admin
- Posts: 7447
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Link to DOS-batch not working
Hi Tim13,
Can you confirm that the path to the CLAMP executable is in your PATH statement in Windows environment variable? That is typically why one would get the error you cited. Alternativly include the full path to the CLAMP executable in your bat file.
hth
Can you confirm that the path to the CLAMP executable is in your PATH statement in Windows environment variable? That is typically why one would get the error you cited. Alternativly include the full path to the CLAMP executable in your bat file.
hth
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
tim13
- User
- Posts: 11
- Joined: Sat Dec 13, 2008 2:46 am
Re: Link to DOS-batch not working
No, this was missing, added the path to the autoexec.bat and restarted.
Now as a precaution a full path in each bat-command for the mp3-files also, like 'CLAMP /LOADNEW "c:\mp3\opera\best.mp3" /PLAY /JUMP 91000' and no path problems will occur ever again...
Thanks a lot, wouldn´t have made it without your great help!

Now as a precaution a full path in each bat-command for the mp3-files also, like 'CLAMP /LOADNEW "c:\mp3\opera\best.mp3" /PLAY /JUMP 91000' and no path problems will occur ever again...
Thanks a lot, wouldn´t have made it without your great help!
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: Link to DOS-batch not working
hey tim13,
Always a pleasure to help
Cheers,
Stefan
Always a pleasure to help
Cheers,
Stefan