Re: File association problem



When dealing with Command Prompt commands, make it a habit
of using the help that is built into the command:
=================
C:\>associate /?
Registers or Unregisters a file extension operating system shell.

ASSOCIATE .ext filename [/q /d /f]

.ext Extension to be associated.
filename Execuatble program to associate .ext with.
/q Quiet - Suppresses all interactive prompts.
/d Delete - Deletes the association if it exists.
/f Force - Forces overwrite or delete without questions.

Examples:
Associate .Lst NotePad.Exe
Adds the association of .Lst with Notepad.Exe.

Associate .Lst /d
Deletes the association of .Lst from Notepad.Exe.

Associate .Lst
Returns the association for .Lst if it exists.

Return Value:
A return value of zero indicates success.
=================

From the third example you can see how to obtain the
association for a .LST file.


"ntuser" <nospam@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:ei$GAQpcGHA.3472@xxxxxxxxxxxxxxxxxxxxxxx
I typed the following at the command prompt:
"associate .jpg rundll32.exe
C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen"

After hitting enter it just goes back to the folder location e.g.
c:\documents and settings\...etc etc.



"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:eLoelJpcGHA.3900@xxxxxxxxxxxxxxxxxxxxxxx
If you did it correctly then associate.exe will return this line:

rundll32.exe C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen


"ntuser" <nospam@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:u$3noaocGHA.3388@xxxxxxxxxxxxxxxxxxxxxxx
Ok, did that. Only this time there was no message; it just went back to
the
folder name. And the problem is still there. So either I didn't do it
correctly; or it didn't work. *sigh*


"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:OKYI%23OocGHA.1324@xxxxxxxxxxxxxxxxxxxxxxx
Associating .jpg files with notepad.exe won't help you much.
On WinXP PCs it's usually
rundll32.exe C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen


"ntuser" <nospam@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:uByJMKocGHA.3344@xxxxxxxxxxxxxxxxxxxxxxx
Ok, I got it working. It says "association "jpg,notepad.exe" added".
I don't know where the executable is located for the Windows Picte
and
Fax
Viewer so I used notepad. Unfortunately though - the problem still
persists.
Nice try though. :)

I did notice that if I just double click the assciate.exe file I get
an
error message:
"Windows cannot access the specified device, path, or file. you may
not
have
the appropriate permissions to accesss the item. (note: this message
is
also
received even on my working old administrator account)


"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:e94PB%23ncGHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
You must rename associate.ex to associate.exe.


"ntuser" <nospam@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:Oj3oZtncGHA.5116@xxxxxxxxxxxxxxxxxxxxxxx
"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:eBzvnIncGHA.3364@xxxxxxxxxxxxxxxxxxxxxxx
Very nice summary! Some questions:
- Does the association work for existing non-admin accounts?

There are nolonger any previously existing lmited accounts; only
new
ones.
Therefore, no i.e. I receive the cyclical "windows cannot open
this
file
etc" message when attempting to open up a .jpg or .gif file

- Does it work for new admin accounts?

Yes and no. Although the .jpg and .gif files open up with the
windows
picture and fax viewer by default as normal. I notice that the
icon
relegated to that file in Windows explorer is that of a unkown
file
type
and
that in My Computer>Folder options>File Types; there is no .jpg
or
.gif
file
type association i.e. the same scenario for limited user accounts
but
with
the "windows cannot open this file.." error message. Weird huh?

- What is the verbatim error message?

Opening a .jpg or .gif file in a limited user account results in
the
following cyclical error message:
"Windows:
Windows cannot open this file:
<file name>
To open this file, Windows needs to know what program created it.
Windows
can go online to look it up automatically, or you can manually
select
from
a
list of programs on your computer.
What do you want to do?
<select> Use the Web service to find the appropriate program
<select> Select the program from a list"

The error message I receive when attempting to merge good .jpg
registry
keys
into these new accounts (whether they bad administrator or
limited)
results
in the following error message:
"Registry Editor:
Cannot import <file location>: Error accessing the registry.

- What do you get when you run this command
from a Command Prompt:
associate .jpg
Use the attached version of associate if you do not
have access to your own.

I must be doing this wrong. After running the associate.ex file
in
your
attachment from the command prompt; i'm given instructions on how
to
associate file extensions with programs. However upon executing
e.g.
"associate .jpg notepad.exe" I get an error message:
"'associate' is not recognized as an internal or external
command,
operable
program or batch file."



"ntuser" <nospam@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:eBvD4xmcGHA.3344@xxxxxxxxxxxxxxxxxxxxxxx
How do I get my new limited user accounts to function properly
such
that
double clicking an e.g. .jpg file results in the appropriate
program
opening
instead of receiving the cyclical file association window?

Windows refuses to acknolwedge the .jpg and .gif file types
for
all
new
user
accounts

How's that? :)

"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:eNKYQYmcGHA.3388@xxxxxxxxxxxxxxxxxxxxxxx
That's about 9 kBytes of text, the equivalent of
three typewritten pages. Any chance of giving us a
concise summary of your problem and your question,
e.g. by leaving out the irrelevant bits?















.



Relevant Pages

  • Win2k - Bypassing cmd.exe restrictions
    ... Windows 2000 allows an administrator to lock down access to ... The 'disable the command prompt' option has an extra setting ... If the 'command prompt script processing' is NOT disabled and cmd.exe ... access to edit this registry key, so to bypass the check we ...
    (Pen-Test)
  • RE: Win 2k Security Questions
    ... "Prevents users from running the interactive command prompt, ... Prevent access to registry editing tools ... "Disables the Windows registry editor Regedit.exe. ... use the Run only allowed Windows applications ...
    (microsoft.public.win2000.general)
  • Re: HOW TO START SYSTEM RESTORE FROM PROMPT SOLUTION DOESNT WORK
    ... windows. ... and this "catastrophe" occured. ... or because a portion of the registry has become corrupted.Make sure the file ... > So type services.msc at the command prompt. ...
    (microsoft.public.windowsxp.general)
  • Re: lssass.exe?
    ... boot to "safe mode with command prompt" by hitting F8 as soon as the ... initial system POST ends and before Windows begins to load. ... use the process here to correct the corrupted registry: ...
    (microsoft.public.windowsxp.general)
  • Re: Unable to delete
    ... the Command Prompt to help with the typing. ... figured that out from a previous Windows Properties question I ... Since this is a system rebuild, I still need to get a full backup ... does not exist on the main drives. ...
    (microsoft.public.windowsxp.basics)