Windows 10 Autorun Doesn't


  1. Posts : 25
    Windows 10 Pro version 20H2 (OS Build: 19042-985)
       #1

    Windows 10 Autorun Doesn't


    Windows 10 version: 20H2 with all current uppdates.
    I have a USB flash drive labelled TravelDrive that contains the Autorun.inf file constructed using existing documentation that contains:
    [AutoRun] OPEN=C:\Program Files\Notepad++\notepad++.exe G:\Personal\CC.txt ShellExectutive=C:\Program Files\Notepad++\notepad++.exe
    UseAutoPlay=1 LABEL=TravelDrive ACTION=Start My Application
    That I expect will launch the program: C:\Program Files\Notepad++\notepad++.exe that wil open the file: G:\Personal\CC.txt.located on the flash drive labelled: TravelDrive (G:\).
    When I engage/insert the flash drive into the USB port I am provided the Autorun notification, but NOTHING else happens!
    So now what?

    Lairbear (Randy Reist)
      My Computer


  2. Posts : 43,004
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Hi, Autorun has restricted functionality - have a look at this article which may apply here: based around Win 7 but note it says
    Note: The text below is also true for Windows 8 and Windows 10
    Using AutoRun / AutoPlay with a USB Flash Drive in Windows 7 (Article from SamLogic)

    This may offer a way forward:
    How to Auto-Run Windows Programs When You Plug In a USB Drive
      My Computers


  3. Posts : 25
    Windows 10 Pro version 20H2 (OS Build: 19042-985)
    Thread Starter
       #3

    DalChina--

    Thanks for the quick response. Unfortunately, no luck...

    I downloaded, and installed the software.

    Inserted the flash drive.

    Nothing happened- not even a notification. Further thoughts ?

    So what's the weather like in the U.K. Absolutely gorgeous here in Pennsylvania!!!! 85 degrees farenheit, and nary a cloud in the sky !!!

    Randy
      My Computer


  4. Posts : 43,004
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    Hi, I've not used the program - I just found it for you. I only know that years ago MS killed off Autorun for security reasons (I remember always checking Chinese students' flash drives if I came across any- very often there was an elementary virus lurking there...)

    Does your flash drive include (as the article says) both

    a. An Autorun.inf containing a reference to

    b. the portable program on the flash drive you wish to run?

    Simply installing the program is just one step.

    Here April was one of the driest on record, now we have a cool May, with several short, sometimes heavy showers most days - varies between blue skies, heavy dark clouds, and cloudy and blue- several times a day. Last night there was a rainbow- the other day brief hail.

    Now more gatherings of people are allowed and eating inside restaurants. People are starting to travel abroad, in very limited number and to only a few places.
      My Computers


  5. Posts : 25
    Windows 10 Pro version 20H2 (OS Build: 19042-985)
    Thread Starter
       #5

    OK, color me ignorant and/or naieve, but please elaberate on your point b that reads:
    b. the portable program on the flash drive you wish to run?

    - - - Updated - - -

    ... Continued

    Would you kindly elaborate the meaning of portable program?

    Are you saying that Notepad++.exe is


    - - - Updated - - -


    ... Continued; one more time...

    Would you kindly elaborate the meaning of portable program?

    Are you saying that Notepad++.exe is required to exist on the USB flash drive?

    R
      My Computer


  6. Posts : 43,004
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #6

    All I'm doing is reading what the article said...

    I am not the author of that article, nor have I used it.

    Therefore anything I say, you can read...

    Here's part of the text: I have highlighted parts for you...

    Step Two: Set Up the USB Drive

    In order to autorun a program, the USB drive needs to contain two things: the program you want to run and an autorun script file that points to that program.

    Step 1: Go ahead and copy the portable executable for the program to your USB drive. That’s the easy part.

    Step 2: To create the autorun script file,

    Notice that, as I have said two things are required.

    Does your flashdrive look like this, but using your program in place of LynxPortable.exe, and changing the Autorun.inf file to match?

    (Screenshot copied from the link I posted).
      My Computers


  7. Posts : 25
    Windows 10 Pro version 20H2 (OS Build: 19042-985)
    Thread Starter
       #7

    dalchina--

    Thanks much for your direction. My problem was centered upon my attempt to launch my program on my C: drive, rather than launching it on my USB flash drive (G:). Once changed, autorun runs successfully when the USB flash drive is engaged/inserted.

    Closing this thred.
      My Computer


  8. Posts : 43,004
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #8

      My Computers


  9. Posts : 25
    Windows 10 Pro version 20H2 (OS Build: 19042-985)
    Thread Starter
       #9

    Micrsoft Vulnerability


    Dalchina--
    If I may add a few words in wrapping-up...
    I find that Microsoft's implementation of Autorun to be overly restrictive. Such restrictions are an outgrowth of their even weaker implementation of general, overall system security; which is woefully vulnerable. Firstly, one should not be able to change a file extent so that you can manipulate a file in a different method (EXE to TXT, etc.)! Once a file's 'type' is established (by its creating software), it should be stored in a hidden location within the file's disk header (MFT), and thus changing its file name extent has NO effect upon how it's to be manipulated. This is ONLY one of many intrinsic security vulnerablities within Microsoft's OS (Windows kernel). ONLY a compiler, OS kernel, or an identified system software utility may change the contents of an object code file.
    Secondly, the Intel processor design should NEVER allow any (non-OS) software to access memory outside of an array (vector) at either end of the vector. Additionally, any non-OS kernel program should not be allowed to directly access core/main memory (or disk file data) by simply reading/writing via an absolute memory/disk address!. The system that I supported for almost 40 years would not allow any of the above to occur, and would result in the immediate termination of the program(s) attempting such actions.
    Let me now step down from my soap box !!!!
    Randy
      My Computer


  10. Posts : 43,004
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #10

    Sounds reasonable- why not add to that the idea that the O/S should be inaccessible to users and programs and maintainable completely separate from them as an entity? Instead, it still owes its structure to its origin and legacy in very small systems with small storage.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:19.
Find Us




Windows 10 Forums