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

Author Topic: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7  (Read 7062 times)

0 Members and 1 Guest are viewing this topic.

snowcatman

    Topic Starter


    Beginner

    • Experience: Beginner
    • OS: Windows 8
    please private message me. instead of mucking up this posts thank you.

    win7 home premium 32&64bit

    First don't talk to me about security. i know all about it. don't care, i am not a major player on online government or corporate businesses.

    second i think the end users owners should of had the choices to make for themselves. microsoft should have just bumped those windows updates to disable like they did but make it to where the end user could re- enabled them if wanted.
     
    if you remember me i like using my external hard drive with portable app. but i don't want to just run one program i might want to run other programs and on my different devices. thank you

    setting it to default which should have been disabled. and let those who wanted to use the so called high security risk if thay wanted to enable them. repeated i know. just saying....

    i have several computers at home. my personal use you might say.

    so using the already current autorun.ini that comes with most cd/dvd usb and such devices. i would like help putting together a batch of some sort that would give most if not all functionality that we had pre 2009 days. thank you.

    i have been here before and some hardly; any of you know me. but what i am looking for are ideas and batch scripting. i have used autoruns and can tell you there are many places we could but a script/batch so when the pc is turned on and logged in. the script/batch will be running ready to execute.

    just like before when you put a html in auto runs it should open up your browser to the pointed htm/html file
    and just like before it should open up the program pointed out in autorun.ini.

    i would like to see most options in this autorun.bat and vbscript files work like the pre 2009 autorun/autoplay did in win95
    also have it to where i can have the option to see a window like before or just run feature.

    i have disable autoplay in my own computers. so i don't have to worry about that. i don't use them anyway. if you plug in a divice it should give you any number of choice not some restrictive garbage they call safe. thank you

    by the way i am a geocacher and i want to use this to save me time to moving information from one device to another. i will be out in the wild and want to save on battery thank you.
    ==============================================================================
    echo off
    ------------------------------------------------------
    rem note detect if usb device is plugged in
    -------------------------------------------------------

    code goes here listening for vbscript or something.

    -------------------------------------------------------
    rem note detect autorun.ini file
    -------------------------------------------------------

    code goes here

    -------------------------------------------------------
    rem note open for ideas? deteact type of files to be exicuted
    ___________________________________

    detect type file

    -------------------------------------------------------
    rem note executing open of files
    -------------------------------------------------------

    execute file open

    --------------------------------------------------------
    rem note loop listening for vbscript
    --------------------------------------------------------

    code goes here


    -------------------------------------------------------
    rem note cleanup/logging scripting commands
    -------------------------------------------------------


    code goes here



    rem finished

    if you read this far please private message me. instead of mucking up this posts thank you.

    i will update often or delete this post thank you. depending on if i get any help thank you.

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1767
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    All info and assistance is handled in the open Forum so others that may come across with the same issue can possibly find their solution right here...

    patio.
    " Anyone who goes to a psychiatrist should have his head examined. "

    Allan

    • Moderator

    • Mastermind
    • Thanked: 1239
    • Experience: Guru
    • OS: Windows 10
    Wow, you certainly know how to motivate others to try to help you.

    Lemonilla



      Apprentice

    • "Too sweet"
    • Thanked: 70
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 7
    Try running this on your host computer, it will loop through all drives, and check to see if the file "flag.txt" exists.  If it does, it will copy all files over to a bin folder that will appear in the same folder as this batch script.

    This is untested code.  If it doesn't work post/PM me.

    Code: [Select]
    @echo off
    for %%A in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
    %%A:
    if exist flag.txt (
    if not exist "%~pd0\bin" md "%~pd0\bin"
    robocopy /E "%%A:" "%~pd0\bin"
    goto :end
    )
    )
    echo No device found.
    pause
    :end

    DO NOT UNPLUG YOUR DRIVE WHILE THIS IS STILL RUNNING! I've lost at least 3 drives doing that with similar code.
    Quote from: patio
    God Bless the DOS Helpers...
    Quote
    If it compiles, send the files.

    snowcatman

      Topic Starter


      Beginner

      • Experience: Beginner
      • OS: Windows 8
      first of all i have been googling for over a week. and my attitude toward a few people in other chat's lends me to be rough around the edges. the idea of having a feature like i am wanting is simple being overkilled by those out there that look at it as death in the face, a virus waiting to happen. you might as well end the internet with their attitudes they have.

      but alas i just want to keep a clean plan of action. i was not looking for everyone else doing all the work on this idea of mine. witch it seem that i am not the only one with this idea. i see lots of other people out there getting the rub the wrong way. as if.

      ya i am coming into this with a bad attitude. all i wanted was to look at the code and post it for everyone to see as i configure it to my idea. keeping the muck out of it. but guess that is blown now.

      i did find a 3rd party software that helps. "APUSB 47". but it is very limited for what i am looking for.
      reg edits did not work for me. and looking at the software microsoft put in its place just makes me sick. i can't run a program off my usb device. not with one click not automaticly. and i want to be able to change the autorun.ini thank you.

      i don't mind any more go ahead post away. maybe i can get what i want and all the others out there can too.

      i think Lemonilla is on to something. thank  you  Lemonilla

      foxidrive



        Specialist
      • Thanked: 267
      • Experience: Experienced
      • OS: Windows 8
      Explain what you need to do in your geocaching efforts if you want a free batch file to help you.




      snowcatman

        Topic Starter


        Beginner

        • Experience: Beginner
        • OS: Windows 8
        um. i just using my external hard drive to connect up to my little inspiron duo. my 1tb desktop hard drive, witch uses my portable apps.
        so as i go around to all my computers and like to just plug it an and wait a few seconds to have my browser and other apps ready.

        windows took that feature away in 2009 and left us with a medium manager that does not let you start programs on a USB device. but rather lets you get at your media such as music document, video and such. the ability to automattically start a program without clicking a this. just plug the usb in. ????  wished it was back the way it was. i liked starting html pages and running all sorts of files and programs with just a plugging in your usb. it was nice.

        so all i want to do is get that feature back.

        it would be nice to plug my GPS - Geocaching devices into my laptop and plug my external USB hard drive and move information around like maps, caches, pocket queries, offline lists, souvenirs, and trackables. amongst other important files

        i can save time not clicking buttons. And limiting how much software is installed and starting up on my little duo. too use as much information pushing for as little time as the battery will allow. being that i will use this devices often in one day i will most likely get to use it a max of like 3-5 times. the less time i spend on it the better.

        i do use a cell phone and am able to get the job done. but it only lasts like half a day. my gps devices already last like a day and a half. so i am seeing that if i can set myself up i could connect to my gps - geocaching devices and external hard drives(portable apps) up to my mifi and update geocaching.com often so others can enjoy knowing whats going on in my area.

        nothing like giving you a lot of gibberish.  important start pc-tablet. plug in gps-device. plug in usb-hard drive. (programs start up automatically) connect mifi. click links login and update to geocahing.com.

        note. i don't want to just run a program when i plug in my usb. i like the idea of changing the autrun.inf file to suit me needs once in awhile. it would be nice to just have the autorun.ini used like it use to be...

        patio

        • Moderator


        • Genius
        • Maud' Dib
        • Thanked: 1767
          • Yes
        • Experience: Beginner
        • OS: Windows 7
        " Anyone who goes to a psychiatrist should have his head examined. "

        foxidrive



          Specialist
        • Thanked: 267
        • Experience: Experienced
        • OS: Windows 8
        snowcatman, a batch file can do anything that an autorun.inf can do, and all it takes is a single click to run it, or type in the filename and launch it.

        I gather you already have a stack of portable apps on a HDD atm and want to do things. 

        Tell us what you want to do with these apps (and please don't waste your breath and our reading time with inconsequential things that don't affect how you will resolve this issue).


        snowcatman

          Topic Starter


          Beginner

          • Experience: Beginner
          • OS: Windows 8
          All i want is to connect any of my USB devices and be able to use the old autorun/autoplay features like pre 2009 days.

          To be able to use the autorun.ini files again to make simple changes to run programs from my USB devices.    ???

          on my computers. head aimed down. sad.... guessing its wishful thinking...

          Geek-9pm


            Mastermind
          • Geek After Dark
          • Thanked: 1025
            • Gekk9pm bnlog
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 10
          Did the OP already read the link Patio gave?
          For those who did not... Look at this:
          Quote
          How to get USB stick to autorun on Windows 7?
          jeffg1 - October 3, 2011
          As a newcomer, I have just installed PortableApps to a USB flash drive together with some of my favourite apps.
          When I plug in the drive, Windows 7 thinks it just contains pictures for some reason and only gives me two options: "Import Pictures and Videos" or "Open folder to view files". Is there anything I can change on the drive to force Windows to autorun the Start.exe program?  ...
          --from http://portableapps.com/node/29397
          That forum goes on to talk about how Microsoft took it out. But you can put it back.
          But this turns up later...
          Quote
          ... On a stock windows 7 install, with no messing having been done with autorun settings, it pops up the same AutoPlay box as usual, with no options in it from the drive. Just the Open in explorer, use for backup, and readyboost ones.
          The label and icon work, just not the action to execute.
          That is now the way that Windows 7 works, and it is Microsoft's deliberate policy that it is so.   ...  What the OP wants, ..., simply can't be done.
          Nevertheless, there are sites that claim it can be done. One can Google:
          AutoPlay with a USB Flash Drive in Windows 7
          ..and find many listings. But I k don't think they do what the OP wants.
          The link below seems to confirm that.
          Autoplay not working for USB Flash Drive (Microsoft)
          But the OP in that post says they had an answer that worked!  :o

          foxidrive



            Specialist
          • Thanked: 267
          • Experience: Experienced
          • OS: Windows 8
          Did the OP already read the link Patio gave?
          For those who did not... Look at this:

          I looked at the link - it took me to the home page of the portable app website.

          Microsoft removed the feature as it is a vector for malware and can lead to armies of bots, if people re-enabled the feature en masse because they liked the convenience.

          If it can be re-enabled with standard techniques then you can be sure that someone has figured it out and the solution is all over the web - it has been a number of years, back to XP days.


          snowcatman

            Topic Starter


            Beginner

            • Experience: Beginner
            • OS: Windows 8
            i have read the link's, i seen it before i came hear. remember i been searching for awhile now.  i already understand the risk's and do not believe in the scare tactics they put out. it's about money and its about control of the product at large.

            think of it this way. if you have a car. and you had the feature of.... lets say gps navigation. and after lets say its been awhile now over 10 years its been catching its been catching on. car manufacturer work with the law to make it illegal, becouse it got you were you needed to go and saved gas. the bad apples terrorists use it too. so no one can use them now. so it became dangerous to have them in the cars becouse you could get carjacked and now they would have gps navigation. and let say the military change the gps to be non civilian only.

            i mean you still get to use your cell phones in the car but its ellegal to drive and use them. you have a choice right?

            so what do i do. i look for a way to have some kind of feature like it. maybe take google earth and build a objects recognition and cameras to help guide me were i am going.  but i think your missing the point if you don't get were i a am coming from by this point.

            Microsoft used a hammer were a little finessing would do.

            i have the third party program that allows me to use the autorun.ini file. but its still in development. i still feel restricted. can only start a type of file and can only start one of them. to top it off i have over half a tb of info on this drive and would have to back it up in order to do a few of the ideas that were shared in that link.

            yes i read the link. and no i do not feel that what Microsoft did helped in any way. it just delayed the inevitable. its been proven over and over again. whats more weird is they were giving company government the choice to block usb drive and divices then bulled the plug on everyone anyway. what an overstepping i think

            so what i wanted to do is circumvent and create script/batching to get back what i had use before and like very much the convenience of having. thank you

            if everyone wants it back think about it. that makes it popular and wanted by the masses. you would think they would come to some kind of half way point. they did not. they let you access the drive not run a program from it. that's not the middle in my point of view.

            what happened to the costumer is always right. you can't tell me that people haven't thought about this feature and wished for it. or wished for it back.

            from a security point of view, i think Microsoft seen this coming and should have built a default disabled. but instead they cut it out completely. and that is restrictive and wrong.  there should have been a choice.



            the links provided do not give back the same functionality. so i will hold out hope and keep looking.

            Geek-9pm


              Mastermind
            • Geek After Dark
            • Thanked: 1025
              • Gekk9pm bnlog
            • Certifications: List
            • Computer: Specs
            • Experience: Expert
            • OS: Windows 10
            Personally, I think enough time and effort has been spent on this topic.
            In the first place. I do not like the way the OP has been  ranting.  His topic is simple. He went on a long rant and expects other people to fill in clarity  for him or give him some quickie solution for a problem that he claims Microsoft has created.
            It is the choice of the OP if he wants to use software released before the year 2009. If he wishes to do so, he can use his original copy of Windows software that was issued before that date, and not take advantage of the updates that Microsoft has offered since then.
            When it comes to security, the end-user either has the opportunity to use the material that Microsoft provides or to not use it. Pick and choose is not an option for computer security. Either you have it or you don't.
            And yes, there is another solution to the problem. It is a third-party solution, which is rather costly or  difficult to implement, but it is not Microsoft's responsibility to implement such a method because a few users think it's needed. Users who want something that amounts to a hack should be willing to pay the money, time and consequences of a third party program that is not supported by the maker of the operating system.
            In my opinion, this topic should draw to a close. Either use the methods that Microsoft has available, or you pay a lot of money for a private firm to give you a suitable workaround.
            This forum, Computer Hope, is not in a position to help people with software projects that have a very narrow application and potentially could be used to infect unsuspecting users. Any method that would once again  the auto run feature of the USB flash drive is potentially dangerous and could lead to bring more infections of both business and personal computers.
            That is all I have to say on this topic.  :)

            Salmon Trout

            • Guest
            Well said, Geek-9pm!