Ask Experts Questions for FREE Help !
Ask
    jgp833's Avatar
    jgp833 Posts: 2, Reputation: 1
    New Member
     
    #1

    Feb 3, 2011, 02:40 PM
    At what point in the boot sequence is a usb stick seen?
    I've got an application that's being started when Windows starts, and when it comes up, it needs to look for a folder on any USB stick that might have been plugged in before the computer was powered up... So, at what point in the boot sequence is a usb stick seen? I need to be sure that, IF a USB stick is present, I know it, and can copy the folder before continuing...
    This code is near the top of my app:
    Code:
    If My.Computer.FileSystem.DirectoryExists("D:\audio") Then
                My.Computer.FileSystem.CopyDirectory("D:\audio", "c:\audio", True)
            End If
            If My.Computer.FileSystem.DirectoryExists("E:\audio") Then
                My.Computer.FileSystem.CopyDirectory("E:\audio", "c:\audio", True)
            End If
            If My.Computer.FileSystem.DirectoryExists("F:\audio") Then
                My.Computer.FileSystem.CopyDirectory("F:\audio", "c:\audio", True)
            End If
            If My.Computer.FileSystem.DirectoryExists("G:\audio") Then
                My.Computer.FileSystem.CopyDirectory("G:\audio", "c:\audio", True)
            End If
            If My.Computer.FileSystem.DirectoryExists("H:\audio") Then
                My.Computer.FileSystem.CopyDirectory("H:\audio", "c:\audio", True)
            End If
    Is it possible that I get past this code before the USB stick is seen, and given a drive letter?

    Thanks for any help you can offer!

    Joe
    bunty_ninja's Avatar
    bunty_ninja Posts: 8, Reputation: 1
    New Member
     
    #2

    Feb 5, 2011, 12:05 AM

    USB will be seenbeforeyour Operating system starts..
    So...
    jgp833's Avatar
    jgp833 Posts: 2, Reputation: 1
    New Member
     
    #3

    Feb 7, 2011, 09:57 AM
    Comment on bunty_ninja's post
    Thanks! Well... wonder what might be going on here? The reported behavior is that sometimes the folder on the stick is not copied to the C-drive... Haven't been able to duplicate this behavior myself, but..
    bunty_ninja's Avatar
    bunty_ninja Posts: 8, Reputation: 1
    New Member
     
    #4

    Feb 8, 2011, 02:13 PM

    Check security on folder and permissions for the user logged on

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Boot sequence [ 3 Answers ]

I recently reformatted a windows xp computer and now it will only start with the cd in the disk drive. I go to F2 to change the boot sequence to start from the hard drive but it automatically goes back to boot from CD drive. I have manually changed it a number of times but for some reason when I...

Boot sequence [ 3 Answers ]

Hi there I was having trouble booting my computer with me external hard drive connected. However I have now adjusted the sequence and put my internal hard drive 1st, CD 2nd and floppy 3rd. I am just wondering if it is OK to have the USB excluded from the boot sequence? And is it OK how I have it?...

Formatting My USB Stick [ 1 Answers ]

I wanted to know a question about formatting in general. I never format a removable storage device. So my question is: Would it help if I formatted all my usb sticks? And how would it help? I'm asking this because I lent my brother a usb stick a few days ago. After he plugged it into his...

USB Memory stick [ 3 Answers ]

I've used up two-thirds of my USB memory stick, but now it does not allow me to add more. The window says something about a write-on protection which I have to lift, but which I cannot find. Thanks.

USB stick not recognized [ 1 Answers ]

When I connect any USB stick to my PC , first it seems to be detected but afterwards a message 'Found new hardware' pops up, trying to recognize the stick but in vain. So?!


View more questions Search