Computer Hope

Microsoft => Microsoft DOS => Topic started by: snowcatman on July 30, 2014, 01:29:38 PM

Title: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: snowcatman on July 30, 2014, 01:29:38 PM
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.
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: patio on July 30, 2014, 02:02:49 PM
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.
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: Allan on July 30, 2014, 02:07:23 PM
Wow, you certainly know how to motivate others to try to help you.
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: Lemonilla on July 30, 2014, 02:09:59 PM
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.
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: snowcatman on July 30, 2014, 03:08:16 PM
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
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: foxidrive on July 30, 2014, 06:53:17 PM
Explain what you need to do in your geocaching efforts if you want a free batch file to help you.



Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: snowcatman on July 30, 2014, 07:28:32 PM
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...
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: patio on July 30, 2014, 07:56:53 PM
See Here... (http://portableapps.com/)
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: foxidrive on July 30, 2014, 08:33:26 PM
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).

Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: snowcatman on July 30, 2014, 09:02:44 PM
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...
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: Geek-9pm on July 30, 2014, 10:18:23 PM
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) (http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/autoplay-not-working-for-usb-flash-drive/304f3ddd-13a1-44a9-be5a-1e9f4c74b3a9)
But the OP in that post says they had an answer that worked!  :o
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: foxidrive on July 31, 2014, 04:13:11 AM
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.

Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: snowcatman on July 31, 2014, 07:41:34 AM
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.
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: Geek-9pm on July 31, 2014, 03:04:08 PM
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.  :)
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: Salmon Trout on July 31, 2014, 03:43:57 PM
Well said, Geek-9pm!
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: snowcatman on August 02, 2014, 10:19:24 AM
a rant you call it. more like i am upset becouse so many are against progress. many people were loving that they could plug in there device and instantly go about their business. we all just want to push a button and the computer start up and browser to open and go about our business.

get rid of links in your email and pictures. stop visiting web sites becouse they could be potential be a threats too. hult our business, stop progress becouse of the bad apples.

we all have our opinions.

i want to get back what we had. and for the masses that want this too. to note there are not just a few of us.
i am taking steps to deal with infections like everyone else.

i am not one to cut off my arm likely to stop a simple infection. i would rather treat it and move on.

this threat you call it. is no more dangerous than the usual virus from back then and the now. everything we add to our computers is important to me. not just some hack. i guess you're saying that i simply need to give up.

i want this to start going back to what i intended it too.

a little at a time. first i need to identify the autorun.ini file. this someone already posted the possible way for that to happen.

i have been polite yet upset. ranting is more of a vent without the need for a response. i just see a lot of negativity in this issue.

looking at the sun is wrong wrong. shaking my head. what are those people thinking, putting on those shades. dont they know its wrong to look at the sun. (analogy)

thank you for not closing your mind. ( and to those of you who think the threat is not there think again. its very real. i don't see this as wrong for those of us that simply want the feature(not a hack).  if you do this it is at your own risk. do take precautions. thank you.

this does nothing at the moment loops and see's if the auto.ini file is there or not and keeps looping...   :-)
most likely will stop the echo "device not found" and will hide the dos window too.
=================================================

@echo off

:: note: loop this

:usbdrives
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 autorun.ini (
if not exist "autorun.ini" goto :usbdrives
goto :end
)
)
echo No device found.
goto :usbdrives
pause
:end

==================================================


i want to be happy i think i will be happy. yes i am happy. its my choice. thank you
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: patio on August 02, 2014, 01:14:21 PM
Wow...
Title: Re: usb auto start script like in the pre 2009 days autorun.ini autoplay.exe win7
Post by: Salmon Trout on August 02, 2014, 01:37:27 PM
Wow...

That is one *censored* of a script! (i.e. a silly one). The OP's request to "PM me" would get him banned from several forums that I am a member of, such as Autoit, as would, also, his posting style.