STRPCO
STRPCCMD PCCMD('C:/124125.Jpg') PAUSE(*NO)
We have been using this command for years, with out any problems.
I have not used it on my pc(win xp pro) for a while. All of the sudden
it dos not work, but it does work when I do:
STRPCCMD PCCMD('C:/iexplore.exe') PAUSE(*NO)
or
STRPCCMD PCCMD('C:/notepad.exe') PAUSE(*NO)
But it WHOULD NOT WORK WHEN I DO:
STRPCCMD PCCMD('C:/124125.jpg') PAUSE(*NO)
Or
STRPCCMD PCCMD('C:/RfLog.txt') PAUSE(*NO)
I am out of ideas, why would it open the executable but will not open
the actual file.?????
It used to work fine and it still does on other machines with win xp
and win2000.
ANY IDEAS?????
Thank You in advance.
Gary
That's because neither of the things you are trying to execute on the PC are
executables. You need to call an executable with the files as a parameter.
For instance STRPCCMD PCCMD('C:\Windows\system32\Notepad.exe
C:\RfLog.txt') PAUSE(*NO)
--
Bob Comer
"Gary Segal" <sega...@hotmail.com> wrote in message
news:1144345841....@i40g2000cwc.googlegroups.com...
BUT, BOTH COMMANDS RUN FINE ON OTHER MACHINES.
=============================================
We have a picture drive where we keep item images - Drive "P:/"
This command worked for many years:
"STRPCCMD PCCMD('P:/ART/124125.jpg') PAUSE(*NO)"
It's still works fine on other PCs, but not on this one. Do you have
any other Suggestions?
Thank You
Gary
--
Bob Comer
"Gary Segal" <sega...@hotmail.com> wrote in message
news:1144352569.6...@i40g2000cwc.googlegroups.com...
THANK YOU
Gil
That is exactly what I did. It dos not work on this mashine, but works
on others. Crazzy.
it can open:
STRPCCMD PCCMD('C:/iexplore.exe') PAUSE(*NO)
or
STRPCCMD PCCMD('C:/notepad.exe') PAUSE(*NO)
But it WHOULD NOT WORK WHEN I DO:
STRPCCMD PCCMD('C:/124125.jpg') PAUSE(*NO)
Or
STRPCCMD PCCMD('C:/RfLog.txt') PAUSE(*NO)
Any other IDEAS????
Thank You all.
On your PC, open MY Computer and locate one of those jpg files and
double click on it. If it opens with the default program you want to
use, then I can not fathom what is wrong STRPCCMD on your computer.
I was initally thinking there is a competiting program for it. However,
could it be possible the file name is not right or is there a space in
the file name (using regular naming conventions) such as 123 456.jpg
I tried that and it will not open when file names have an empty space.
It will open solid name files such as 'thispicturelogo.jpg' - not 'this
picture logo.jpg'.
Other than that..maybe a flaw in the XP Pro on your PC that is not
regonizing the request to open the file..try getting the latest service
packs for your xp pro (both Windows & Client Express).
If that does not work...switch computer with that works.
Happy hunting..
Gil
Does:
STRPCCMD PCCMD('START C:/124125.jpg') PAUSE(*NO)
work?
Its actually rather easy to screw up the file-type registrations BTW.
Its possible to have both a single extension, or several extensions
mapped to an alias, with either or both mapped to arbitrary
applications. I'd poke aroung for entrys like 'image file', 'jpeg file',
'jpg file', 'jpg', etc in the file-type associations and see how many of
them are claiming the 'jpg' extension. You might fix one, only for it to
be looking at the other the whole time.
Thanks
file has no spaces and I have the latest service packs. It does not
work from this machine only. Niether from CA or from Reflection.
Thanks again
Gary
it does not work (STRPCCMD PCCMD('START C:/124125.jpg') PAUSE(*NO) )
file associated to open with internet explorrer, but the the actual
icon is not ie, trided to changed it - no luck.
I am out of Ideas.
Thank you
Now you indicated that the 'icon' for the jpg file is not an IE icon.
Try to find the program that represent that icon and remove the jpg
associate file from the program properties.
Once that done, then reassociate the jpg file to IE and try again.
again..if all else fails..you have 2 other possibilites..
1. switch computer that works
2. erase & reinstall all programs and files
Actually 3rd choice..get a newer computer! That is what I am getting!
Gil
If it is not working from the command line, then recheck your file
associations. If the associations are correct, make sure that the
associated command is correct. Click the Advanced button. Select "open"
and click the "Edit" button. Compare what you see with a working PC.
Most likely the command and/or associated parameters got messed up.
I had similar problem on my old XP/PRO PC. It started after a I
downloaded a trial version of a PCL viewer. When I decided I didn't want
it and removed it, I could no longer open any image commands using
STRPCCMD although double-clicking from explorer continued to function
just fine.
Nothing fixed the problem other than to scratch install the OS (this is
how I got a new PC)