Autorun on USB drives

Page 3 of 4 FirstFirst 1234 LastLast

  1. Posts : 488
    Win 7 Pro x64 x 3, Win 7 Pro x86, Ubuntu 9.04
       #21

    hardy said:
    This is very old style, but works. This way a mounted Truecrypt volume is just a doubleclick further than with Autoplay.

    Create run.bat in the USB stick root and edit this one line into it:

    Code:
    open=TrueCrypt\TrueCrypt.exe /q background /m rm /v "Data.tc"
    This line expects that Truecrypt has been installed (as with the Traveler wizard) in the root in a 'Truecrypt' folder. Rename Data.tc according to the name of your encrypted volume.

    Now as Windows 7 opens the 'Open to view files' option, choose that, then double click run.bat to open the Truecrypt password screen.
    Even though I don't actually use this software, that's a good point. You'd probably want to create a batch file for unmounting the drive as well, so you can avoid opening up the program etc..
      My Computer


  2. Posts : 19
    Windows 7
       #22

    Can the above autorunner.exe file be made to run on an x64 machine? I tried the above program, but it didn't seem to work when I inserted my USB drive. Only autoplay showed.
      My Computer


  3. Posts : 488
    Win 7 Pro x64 x 3, Win 7 Pro x86, Ubuntu 9.04
       #23

    hsrstud said:
    Can the above autorunner.exe file be made to run on an x64 machine? I tried the above program, but it didn't seem to work when I inserted my USB drive. Only autoplay showed.

    It's built to run as x64 when in x64 environment, and x86 when in x86 environment. I just tested it on my x64 machine and it popped up the messagebox asking if I wanted to run the thing. It searches for autorun.inf in the usb drive and then asks. Post the contents of your autorun.inf file and I'll look into it...
    Last edited by fakeasdf; 23 Nov 2009 at 16:36.
      My Computer


  4. Posts : 19
    Windows 7
       #24

    Thanks for looking into this for me! Here are the contents of my autorun.inf file:

    [autorun]
    label=TrueCrypt Traveler Disk
    icon=TrueCrypt\TrueCrypt.exe
    action=Mount TrueCrypt volume
    open=TrueCrypt\TrueCrypt.exe /q background /e /c y /m rm /v "Truecrypt\Volume.tc"
    shell\start=Start TrueCrypt Background Task
    shell\start\command=TrueCrypt\TrueCrypt.exe
    shell\dismount=Dismount all TrueCrypt volumes
    shell\dismount\command=TrueCrypt\TrueCrypt.exe /q /d
      My Computer


  5. Posts : 488
    Win 7 Pro x64 x 3, Win 7 Pro x86, Ubuntu 9.04
       #25

    hsrstud said:
    Thanks for looking into this for me! Here are the contents of my autorun.inf file:

    [autorun]
    label=TrueCrypt Traveler Disk
    icon=TrueCrypt\TrueCrypt.exe
    action=Mount TrueCrypt volume
    open=TrueCrypt\TrueCrypt.exe /q background /e /c y /m rm /v "Truecrypt\Volume.tc"
    shell\start=Start TrueCrypt Background Task
    shell\start\command=TrueCrypt\TrueCrypt.exe
    shell\dismount=Dismount all TrueCrypt volumes
    shell\dismount\command=TrueCrypt\TrueCrypt.exe /q /d

    I just pasted that into my autorun.inf and it popped up the pop up, are you looking for the right thing? And I'm running 7 x64 Professional. Here's a pic of what it does...
    Attached Thumbnails Attached Thumbnails Autorun on USB drives-autorunner.png  
      My Computer


  6. Posts : 19
    Windows 7
       #26

    Unfortunately, I don't receive that window when I plug my USB drive into my computer. I only receive the autoplay window. I'm also running Windows 7 Pro.
      My Computer


  7. Posts : 19
    Windows 7
       #27

    I just want to make sure... the only thing I should need is the Autorunner.exe file that you attached to your 07-11-2009 post, right?
      My Computer


  8. Posts : 488
    Win 7 Pro x64 x 3, Win 7 Pro x86, Ubuntu 9.04
       #28

    Yes... Is this a thumb drive, or an actual external USB drive... There's a possibility it show's up differently and my thing isn't checking it...

    I'm specifically checking
    if (drive.DriveType == DriveType.Removable)
    which should include an external hard drive, but I'm not sure...
      My Computer


  9. Posts : 19
    Windows 7
       #29

    Maybe this is the problem. I'm using a portable 30GB 2.5" mobile hard drive that I connect to my computer via USB.
      My Computer


  10. Posts : 488
    Win 7 Pro x64 x 3, Win 7 Pro x86, Ubuntu 9.04
       #30

    hsrstud said:
    Maybe this is the problem. I'm using a portable 30GB 2.5" mobile hard drive that I connect to my computer via USB.

    I'll have to test it at home, I don't have an external with me at work... Kind of weird, I might be able to grab someone else' external...
      My Computer


 
Page 3 of 4 FirstFirst 1234 LastLast

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

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