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

Author Topic: autorun file  (Read 4605 times)

0 Members and 1 Guest are viewing this topic.

goodnatureddog

  • Guest
autorun file
« on: May 11, 2007, 03:53:28 PM »
how would i write an autorun program that would run when i plugged in my flash drive?

GuruGary



    Adviser
    Re: autorun file
    « Reply #1 on: May 11, 2007, 11:06:04 PM »
    I think the closest thing to what you want is AUTORUN.INF, but I don't think AUTORUN.INF will work on flash drives.

    U3 drives accomplish this by creating a CDFS partition on flash drives and launching an AUTORUN.INF file on the CDFS partition.   So start by looking at autorun and U3.  Post back if you have more questions.

    Carbon Dudeoxide

    • Global Moderator

    • Mastermind
    • Thanked: 169
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Experience: Guru
    • OS: Mac OS
    Re: autorun file
    « Reply #2 on: May 11, 2007, 11:23:00 PM »
    I have an autorun on my usb drive.
    Code: [Select]
    [autorun]
    icon=myicon.ico

    Put the Autorun.inf in the root of your drive with the icon and it gives the flash drive an icon. You have to unplug it and then replug it and you will have a personal icon.

    CBMatt

    • Mod & Malware Specialist


    • Prodigy

    • Sad and lonely...and loving every minute of it.
    • Thanked: 167
      • Yes
    • Experience: Experienced
    • OS: Windows 7
    Re: autorun file
    « Reply #3 on: May 11, 2007, 11:32:17 PM »
    how would i write an autorun program that would run when i plugged in my flash drive?

    What exactly do you want it to do?  You gotta help us out here if you want definite answers.

    And autorun.inf, by the way, will work on a flash drive.
    Quote
    An undefined problem has an infinite number of solutions.
    —Robert A. Humphrey

    goodnatureddog

    • Guest
    Re: autorun file
    « Reply #4 on: May 15, 2007, 07:41:59 PM »
    I'm trying to write an autorun file for portable apps, i get sick of have to tell it what to do every time i plug it in. also i want to write one for a cd that i have some homemade games on, i want to start the menu from the cd when the cd is put in, i have that covered with a batch file. so in a nut shell, i nned something to autorun portableapps and a batch file from a cd

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: autorun file
    « Reply #5 on: May 15, 2007, 09:01:19 PM »
    You are still not being specific for a problem that requires specifics...in other words i don't think you can write a batch file for your flash drive that says run all my stuff right now....
    See the issue ? ?
    " Anyone who goes to a psychiatrist should have his head examined. "


    goodnatureddog

    • Guest
    Re: autorun file
    « Reply #7 on: May 16, 2007, 06:50:46 AM »
    I'm not saying i want it to be a batch file, i want it to run a batch file from my flash drive