Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

STRPCCMD

558 views
Skip to first unread message

Gary Segal

unread,
Apr 6, 2006, 1:50:41 PM4/6/06
to
Hi.
I need some help with STRPCCMD.

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

Robert Comer

unread,
Apr 6, 2006, 2:31:52 PM4/6/06
to
> But it WHOULD NOT WORK WHEN I DO:
>
> STRPCCMD PCCMD('C:/124125.jpg') PAUSE(*NO)
> Or
> STRPCCMD PCCMD('C:/RfLog.txt') PAUSE(*NO)

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...

Gary Segal

unread,
Apr 6, 2006, 3:42:49 PM4/6/06
to
BOB,
THANK YOU FOR YOUR REPLY.

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

Robert Comer

unread,
Apr 6, 2006, 3:55:48 PM4/6/06
to
Okay, I see that can work after some testing on my part, sorry, but for it
not to work the default apps for these type files must have been munged, you
can try reassociating them, but you'll probably get more of an answer in a
Windows group as it sound like a purely PC OS problem.

--
Bob Comer


"Gary Segal" <sega...@hotmail.com> wrote in message

news:1144352569.6...@i40g2000cwc.googlegroups.com...

Gary Segal

unread,
Apr 6, 2006, 4:08:47 PM4/6/06
to
yep. I have tried reassociating them - no luck. that is why I've
disided to ask, maybe some one else had the same problem. Thanks

ANY ONE ELSE HAVE ANY IDEAS?

THANK YOU

Gilbert Noetzel

unread,
Apr 6, 2006, 4:49:13 PM4/6/06
to
If you are Windows XP Pro, you need to go to that 'file type' jpg and
right click on it and click on OPEN WITH, then at the bottom, click on
browse and select the program you wanted the JPG file to be open with,
click on the check box to 'always' use this program when opening. Once
done, then try your STRPCCMD again..and it works. I did it with no problem.

Gil

Gary Segal

unread,
Apr 6, 2006, 5:16:18 PM4/6/06
to
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.

Gilbert Noetzel

unread,
Apr 6, 2006, 5:24:55 PM4/6/06
to
Gary -

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

Grumman

unread,
Apr 6, 2006, 10:36:53 PM4/6/06
to

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.

Gary Segal

unread,
Apr 7, 2006, 9:53:15 AM4/7/06
to
Gil,

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

Gary Segal

unread,
Apr 7, 2006, 10:16:05 AM4/7/06
to
Grumman,

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

Gilbert Noetzel

unread,
Apr 7, 2006, 11:39:16 AM4/7/06
to
Try again something else.

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

Lou

unread,
Apr 8, 2006, 11:09:01 AM4/8/06
to
I wonder if some spyware or virus has hijacked some extension
associations.

Gary Segal

unread,
Apr 10, 2006, 11:19:24 AM4/10/06
to
I had tried everything - no luck.
Thanks

Mark

unread,
Apr 11, 2006, 10:25:55 AM4/11/06
to
Have you tried opening a "command prompt" window on your PC and typing
the document name from the command line to see if it is actually the
file type association that is wrong on your system. Make sure you are
in the right folder when you do that and/or use the right path.

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.

Tim M

unread,
Apr 13, 2006, 6:22:27 PM4/13/06
to

"Gary Segal" <sega...@hotmail.com> wrote in message
news:1144345841....@i40g2000cwc.googlegroups.com...

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)

0 new messages