Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Open all extensions of type .x with a particular account  (Read 15325 times)

0 Members and 1 Guest are viewing this topic.

Treval

    Topic Starter


    Hopeful

    Thanked: 14
    Open all extensions of type .x with a particular account
    « on: December 15, 2009, 07:26:22 AM »
    Hello there fellas.

    Here's what I wish to do:

    I want all .docx files to open with MS Word 2007 as Administrator (runas).

    I haven't figured out how to do it yet.
    How do I do this? File Options? HKCR? PPE?

    Why do I want to do this? Well, I have a bblean shell and it covers all of my Office buttons on top of Office2007 apps.. running as Administrator will bring back the normal Windows shell (explorer.exe) and thus I can see my buttons again.

    What I have figured out is: how to run MS Word 2007 as Administrator (that's quite simple, just add runas /user:xyz\abcomputer /savecred)


    Treval


    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Open all extensions of type .x with a particular account
    « Reply #1 on: December 15, 2009, 01:20:41 PM »
    Why not just go to word's file properties and check "Run this program as an administrator"?
    I was trying to dereference Null Pointers before it was cool.

    Treval

      Topic Starter


      Hopeful

      Thanked: 14
      Re: Open all extensions of type .x with a particular account
      « Reply #2 on: December 15, 2009, 03:01:19 PM »

      I don't really see what you mean.
      I don't find fields to change it.
      You can only change it if it's a shortcut.

      patio

      • Moderator


      • Genius
      • Maud' Dib
      • Thanked: 1769
        • Yes
      • Experience: Beginner
      • OS: Windows 7
      Re: Open all extensions of type .x with a particular account
      « Reply #3 on: December 15, 2009, 03:41:11 PM »
      Not true...you can change the .exe as well...
      " Anyone who goes to a psychiatrist should have his head examined. "

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Open all extensions of type .x with a particular account
      « Reply #4 on: December 15, 2009, 03:49:18 PM »
      Different program. Same idea.





      Every time I start VB6, regardless of HOW I start it- even if I double-click a vbp file or module or what-have-you, it starts under the admin account.
      I was trying to dereference Null Pointers before it was cool.

      Treval

        Topic Starter


        Hopeful

        Thanked: 14
        Re: Open all extensions of type .x with a particular account
        « Reply #5 on: December 16, 2009, 05:00:08 AM »

        Why do you show a Vista/Win7 screenshot when this is an XP subforum?
        Or am I wrong?

        I don't have that option and I'm on XP Pro SP3 with bblean shell.



        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: Open all extensions of type .x with a particular account
        « Reply #6 on: December 16, 2009, 11:36:57 AM »
        Hmm, quite right, sorry about that.

        Best I can come up with, is changin the actual association to use runas;

        I was able to get it working for text files in my VM program; I changed tje registry association to:

        runas /env /user:%COMPUTERNAME%\Administrator "\"%SystemRoot%\system32\NOTEPAD.EXE\" \"%1\""

        so, for Word, you could probably change the key:

        HKEY_CLASSES_ROOT\Word.Document.12\shell\Open\command 's default value to

        runas /env /user:%COMPUTERNAME%\Administrator "\"C:\Program Files (x86)\Microsoft Office\Office12\WINWORD.EXE" /n /dde\"

        here is a registry script that should do just that:

        Code: [Select]
        Windows Registry Editor Version 5.00

        [HKEY_CLASSES_ROOT\Word.Document.12\shell\Open\command]
        @="runas /env /user:%COMPUTERNAME%\Administrator \"C:\\Program Files (x86)\\Microsoft Office\\Office12\\WINWORD.EXE\" /n /dde"

        I'm uncertain how runas will interoperate with DDE... you might need to tack:
        Code: [Select]
        \"%1\"
        in place of /dde

        Hope this helps some. Sorry for the confusion re: Vista/XP.
        I was trying to dereference Null Pointers before it was cool.

        Treval

          Topic Starter


          Hopeful

          Thanked: 14
          Re: Open all extensions of type .x with a particular account
          « Reply #7 on: December 17, 2009, 03:00:59 PM »
          Nice, but the path was not correct.
          I know, I'm smart enough to figure it out. ;P
          I find "C:\Progam Files" a lame path.
          I use "g:\appz" and stuff like that.

          Even using the correct path, sadly it didn't work..
          The bblean shell took over.

          What kind of weird value is this for the 'command' key? ..
          vUpAVX!!!!!!!!!MKKSkWORDFiles>tW{~$4Q]c@5d1`,xaTO5 /n /dde

          and my ddexec key has the value:
          [REM _DDE_Direct][FileOpen("%1")]

          Strange..
          « Last Edit: December 17, 2009, 03:13:27 PM by Treval »

          patio

          • Moderator


          • Genius
          • Maud' Dib
          • Thanked: 1769
            • Yes
          • Experience: Beginner
          • OS: Windows 7
          Re: Open all extensions of type .x with a particular account
          « Reply #8 on: December 17, 2009, 04:16:59 PM »
          You're infected...
          " Anyone who goes to a psychiatrist should have his head examined. "

          BC_Programmer


            Mastermind
          • Typing is no substitute for thinking.
          • Thanked: 1140
            • Yes
            • Yes
            • BC-Programming.com
          • Certifications: List
          • Computer: Specs
          • Experience: Beginner
          • OS: Windows 11
          Re: Open all extensions of type .x with a particular account
          « Reply #9 on: December 17, 2009, 04:43:31 PM »
          Nice, but the path was not correct.
          I know, I'm smart enough to figure it out. ;P
          I find "C:\Progam Files" a lame path.
          I use "g:\appz" and stuff like that.

          Even using the correct path, sadly it didn't work..
          The bblean shell took over.

          What kind of weird value is this for the 'command' key? ..
          vUpAVX!!!!!!!!!MKKSkWORDFiles>tW{~$4Q]c@5d1`,xaTO5 /n /dde

          and my ddexec key has the value:
          [REM _DDE_Direct][FileOpen("%1")]

          Strange..


          ignore the command key- it's unused.

          Additionally, that "weird" value is inserted by several cracks/pirate copies of 2007.
          I was trying to dereference Null Pointers before it was cool.

          Treval

            Topic Starter


            Hopeful

            Thanked: 14
            Re: Open all extensions of type .x with a particular account
            « Reply #10 on: December 18, 2009, 04:01:11 AM »
            Or perhaps that 'weird' part is an octal/hexadecimal/other system translation to ASCII.
            Doesn't mean it's infected.
            A reply like that coming front a moderator.. I don't mean offense, but that was a bit noobish.

            So, what's the solution, since this one doesn't appear to work?

            Salmon Trout

            • Guest
            Re: Open all extensions of type .x with a particular account
            « Reply #11 on: December 18, 2009, 04:31:55 AM »
            Treval, you're the one that's coming over, not exactly 'noobish', but certainly 'dorkish'. People are good enough to try to help you and you throw their efforts back in their faces with snarky remarks. You are infected. Being in denial about it and moreover being discourteous to the people who told you is not exactly going to get you a flood of help on here.

            Just my 2 cents worth.


            Treval

              Topic Starter


              Hopeful

              Thanked: 14
              Re: Open all extensions of type .x with a particular account
              « Reply #12 on: December 18, 2009, 05:37:36 AM »

              How can I be infected if I've thoroughly scanned with NOD32 and Norton Internet Security and they both say I don't have any infections?
              Perhaps some malware scans too?

              kpac

              • Web moderator


              • Hacker

              • kpac®
              • Thanked: 184
                • Yes
                • Yes
                • Yes
              • Certifications: List
              • Computer: Specs
              • Experience: Expert
              • OS: Windows 7
              Re: Open all extensions of type .x with a particular account
              « Reply #13 on: December 18, 2009, 05:40:32 AM »
              Quote
              How can I be infected if I've thoroughly scanned with NOD32 and Norton Internet Security and they both say I don't have any infections?
              So you've got 2 AVs running?

              BTW, AVs don't pick up everything - that's why you'll never see a "100% detection rate".

              Treval

                Topic Starter


                Hopeful

                Thanked: 14
                Re: Open all extensions of type .x with a particular account
                « Reply #14 on: December 18, 2009, 05:56:15 AM »

                No, I don't have 2 AV's running, however I have NOD32 with advanced heuristics and everything set.
                NOD32 is the best AV out there, I've read the reviews/charts. It's also used by my college's WLAN admins.

                The Norton Security Scan was that online scan.
                It usually detects 1 more virus than NOD32 (probably because it's in RECLYCER, I don't know).

                Anyway, now I'm scanning with MalwareBytes & SpyBotSD.
                I must say my laptop runs smooth and nice so I have no problems.
                It's hardly cookie/*ware infested. In fact, it's not.
                I have a firewall that blocks cookies and I block all domains except those I accept.
                I have adblock plus, noscript for firefox, hostsman.
                I have to say I'm pretty well protected.

                In my opinion it's too much of a hassle to be running 5 different products to know if you're 100% clean.
                It's just a waste of my time.. I have other things to do..