Automatic execution of the batch file at the connection of the USB drive

I created a batch file that checks the drive e. the presence of a specific file, and if there, copy it to a location on the hard drive. (Drive E is where all USB drives see the place through my window of Windows Explorer.) I would like to set up my computer so that this batch file is executed whenever such a device is plugged into the USB port. How can I accomplish that?

Otherwise, is it possible to incorporate the Attaché-USB-player status in the batch file itself and just leave that batch file running at any time? I used "IF EXISTS E:\*.*", but that is not do me much good, because I have to keep control of this condition again and again, and eventually the batch file gets tired of the audit and said that the drive does not exist.

Hello

You can ask your question on the TechNet forums for batch files.

http://social.technet.Microsoft.com/forums/en-us/category/windowsvistaitpro

Tags: Windows

Similar Questions

  • How to download an application on the USB drive and install it then from there?

    I want to download an app from itunes store from a windows computer, save on the USB drive and then install on my iPad. Please gibve me a hint weather it is possible. Thank you!

    No, it isn't. Live or through iTunes only.

  • Tecra M2 - boot from the USB drive

    Hello
    Why Tecra M2 didn't boot from the USB drive in the BIOS?
    Is posible put in place this function in the new BIOS.

    Good bye

    Hello

    Good questions for Toshiba engineers.
    I don't think there is anything you can do about it. :(

  • Stop the automatic execution of the View object without setting to insert only?

    Hello

    I have a View object that is used to insert only.  However, as I have to be able to filter through the lines not validated with a view criteria, I can't put the View tuning object to insert only.

    I do not want to run queries to the database because the attribute I am filtering by is a transitional attribute that is set when a new line is created.  The only purpose of this attribute should be used for filtering.  When my VO runs a query, I get an error because this attribute is not in the table of database mapped to the VO.  Currently, this attribute is added to the EO and I added it to the VO as attribute 'of the entity.  Another reason, I want to query the DB is because there are more than 500 k rows in the table.

    In short, I need a way to stop all the display object queries until I called the line below but I can't adjust the View object to insert only.

    welltdwVO.setQueryMode(ViewObject.QUERY_MODE_SCAN_UNPOSTED_ENTITY_ROWS);
    

    Thanks for reading.

    Hello

    First keeping a transitional attribute at the level of the entities should not raise an error make sure you follow the instructions.

    http://docs.Oracle.com/CD/E21764_01/Web.1111/b31974/bcentities.htm#BABHGCAH

    Secondly, to prevent the execution of the query you can run together of empty lines on the view object, before displaying the page. If an iterator is involved, and it doesn't have to be so also on the property of RowCountThreshold-1.

  • How to automate .sql in a batch file or from management studio

    Hi, I have almost 60 file .sql, which I have performed individually by clicking on then, which will automatically open the Management Studio, and I have to run...

    How can I create a batch file to do this, or another option of this in management studio only...

    Thank you

    You first need to know what to ask, then you know where to put them.

  • Automatic installation of the RNDIS driver

    Hello

    Why when you connect a Linux USB Ethernet Gadget for Windows 7/8, and perhaps others, Windows does not install the driver automatically?

    The driver is already on the hard drive and Windows knows the DEVICE class. Should be simple. Am I missing something?

    Best regards

    Ulrich

    Hello

    Welcome to Microsoft Community forum.  Let me help you with your concern.

    Windows uses information files (INF) the installation program to install the following components for a device: one or several drivers that support the device.

    INFs

    http://msdn.Microsoft.com/en-us/library/Windows/hardware/ff547402 (v = vs. 85) .aspx

    To use the Remote NDIS driver with a USB device, you need a file INF. see this Microsoft article.

    Remote NDIS INF model

    http://msdn.Microsoft.com/en-us/library/ff570620.aspx

    I hope this helps. If you need help with Windows, let us know and will be happy to help you.

  • Computer automatically restarts and the disk driver hard name question.

    Original title: my PC has 2 problems

    Hi guys, I'm going to talk about my PC has 2 problems.

    1. The problem is when I turn on my computer and boot my system, after 20 minutes I'm playing games, it auto restart my PC several times. 2 weeks ago, my old diet was very serious problem and the cause cannot start my PC, so I bought one to replace. Until a few days ago, it worked with my PC. He still now, have the same problem, but that sometimes he can't start several times and then she came back to do it again. I thought that it will more work and not a problem. I am very nervous and furious...! >:(
    2. Another problem is that my drive hard(location is C:\), it cannot load my system sometimes as the first problem earlier. Not only that, when it is started my PC, I checked all my hard drivesof driver name(I have 2 HARD drive, everything is very old)right click on C:\, click 'Properties' and then click 'Material' tag for the driver name lists. I don't see a single HARD drive driver name(it's in D:\), not on C:\ Name of the driver drive HARD, but in 'My Computer', it takes C:\ icon to click. I don't know why a few months ago, it has worked until now, one is missing and we're still on the list of driver name.

    Hope everyone give me help.

    Hi Billy,

     
    1. do you get an error message/code?
    2. What is the brand and model of the computer?
    3. How many partitions on each disk hard you?
     
    -For the first issue with computer restart automatically, follow the steps in method 3: disable automatic system failure reboot from the link:
    How to solve problems of hardware and software drivers Windows XP
     
    If the problem persists, see the event viewer for the detailed error message.
    Follow the link for the procedure:
    Procedure to view and manage event logs in Event Viewer in Windows XP
     
    -For the second question, I suggest you to run a check disk and find if it helps.
    Reference:
    How to perform disk error checking in Windows XP
    Important: When running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.
     
    Also check if all of the hard drive and the drive letters are displayed correctly.
    Follow the steps to access disk management:
    a. click on Start and then run.
    b. type diskmgmt.msc in the text box and press the enter key or press the OK button.
     
    If the problem persists, you can write to us and we will be happy to help you further.
  • Read mkv files to the USB drive on a dvd transfer

    I have a lot of videos and recordings on Sandisk Cruzer mkv format tv blades. I want to transfer them to dvd using a conversion program loaded on my laptop Dell Inspiron 5520. Problem is that when I connect the USB, the format is not recognized, and reformatting suggests that would erase the info! Y at - it a program that can get my laptop to accept the file mkv to convert and burn to dvd?

    Hello

    Please keep us updated.

    I would ask to refer to suggestions provided by Barb Bowman replied on 2 January 2013 and verification.

    Important: This response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there. There are the dangers inherent in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software Internet.

    I hope this helps. Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

  • Partition the USB drive CD external-320 GB - PX1267U - 3 32 does not work

    I have an external usb 320 GB, that works perfectly.

    There are a score of security which appears as a CD drive in my computer and directs the program of password automatically when the drive is connected.
    After entering the password for the drive external hard appears as a drive in my computer.

    This security program has stopped running.

    I turned the on/off control.
    Tried it on another machine.
    Tried to "Autoplay" CD player.
    Double click on the CD drive only to be told to "insert a disc into drive F:."

    Is there a way to bypass this partition and recover all of my data from the hard drive?

    Hello

    Several times I saw how it works because one of my friends has this external HARD drive. I don't have much experience with it, but before you wait here for the comments trying to reinstall the REGEN software. Maybe this will help. This software and Application Update CD you can find and download from Toshiba support page http://eu.computers.toshiba-europe.com

    Check it under Options > workout equipment.

  • update the USB driver

    I have updated to service pack 3 and the need to update my USB driver but cannot find an update for Windows XP.

    The drivers of USB ports are "integrated" XP with installation of XP Service Pack 1 / 2 (?), which is automatically part of Service Pack 3.

  • data recovery - can't read a disk using the USB drive cage

    Original title: I have a few documents in Windows 98, I need to read the hard drive on a desktop DEll 530 which is SATA and Vista.

    I have a Vista OS and I need to read files stored on a computer with Windows 98, I drive hard on and have an adapter that has a PATA SATA and IDE port and plugs into the USB port on any computer but when I go into disk management it says I need to initialize the disk , but when I try on the MBR it says disk not ready, I don't want to format the drive, I need free and accessible files. What should I do? I have no funds for it either. Any suggestions? Please feel free to respond to my personal E-mail, it is as follows: * e-mail address is removed from the privacy *. Thank you that all suggestions will be appreciated

    Hello

    There may be a problem with the drive, the USB case or even the wiring.

    Since its control of important data with a real computer store (the one that makes its own
    maintenance in the House and not of leeks and glances at a Best Buy or other stores).

    Also be sure to check with the help of the external USB adapter.

    I hope this helps.

  • Error "the specified module could not be found" when the USB drive is connected.

    Original title: execution of disk error hard usb

    I use windows 7. whenever I have plugin a usb drive and open it it gives a shortcut of the same drive without showing all data and when I opened the short cut, the following error is displayed.

    There was a problem starting 4 # .ini
    The specified module could not be found.
    I also try to activate windows bit defender it gives error

    Internal error of shell. Please contact the software developers

    Code = 0xC000005, address = 0x10059E8D

    Hi Prashant,

    Try to uninstall the security essentials and install avast.  I have installed trial version, he found an additional virus and after that my system works fine.  Try it and check if it works.

    Concerning

    Patricia

  • 8.1 Windows Media Library problems because there are read errors after removing the USB drive

    Whenever I plug a USB key with music on it; It gets automatically added to my library of players. Then when I remove the USB key; I left with a lot of read errors. How can I get my USB drive does not automatically add its contents. I set AutoPlay, even not use. This never happened with Windows 7.i do not know what they changed to do this.

    Hello Chris,

    Thanks for posting your question on the Microsoft community.

    I would like to know some information about the problem so that we can help you better.

    You made any hardware or software changes on your computer before the show?

    Thank you for details on the issue.

    This problem can occur either because of bad parameters of Windows media player.

    I would suggest trying the following methods and check if it helps.

    Method 1:
    Resolution of the problems of Run Windows media player library and check. Please follow these steps:

    a. press Windows + W keys, type Troubleshooting in the search box and press ENTER.
    b. click on 'show all' and then click 'Windows Media Player library'.
    c. click 'Next' and follow the on-screen instructions.

    If this does not help, use method 2.

    Method 2:
    Database rebuild Windows media player and check. Please follow these steps:

    a. press Windows + R key, type %LOCALAPPDATA%\Microsoft in the immediate window and press ENTER.
    b. Select the "Media Player" folder, right-click on it and select delete.
    c. restart Windows media player.

    Note: Windows media player automatically rebuilds the database.

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • Satellite T130 - 10G - how do I boot from the USB drive?

    Hello

    How can I start a USB PEN in my satellite T130 without a cd/dvd player?
    I want to install Ubuntu in my laptop.

    Can someone help me?

    Hello

    You must use a USB bootable flash key.
    Then you could try to choose the USB key as device, press F12 when applying power in the start unit. Then a menu with bootable devices should appear.
    Then, you can use the arrow keys to choose the USB as a source of start-up.

  • Bootcamp does not have enough space on the USB drive.

    Hello everyone,

    I am trying to install Windows 7 on my Macbook pro mid-2012 running on El Capitan.
    I want to do with a USB key, I bought a 16 GB nine one. Try to create the USB bootable with Bootcamp, I get the error that the USB device is too small. I don't know why that it is 16 GB.

    Then I tried to format using disk utility, but I get an error.

    I tried to use the command line to do with diskutil, always get an error: impossible to disassemble the drive.

    Using diskutil I can see the USB key:

    #: NAME SIZE TYPE IDENTIFIER

    0: GUID_partition_scheme * GB 15.5 disk1

    1: EFI EFI 209.7 MB disk1s1

    2: Apple_HFS Untitled 15.2 GB disk1s2

    I tried to erase the part EFI using gdisk, everything is ok in gdisk, I can just erase and write to the disk. But the problem is that when I unplug and re-plug the USB nothing has changed...

    Try to use under Windows (via VirtualBox) I see only a 200 Mb USB Drive.

    I don't really understand everything first:

    -Why bootcamp with the new USB has not been able to make a USB bootable for windows.
    Second:

    -Why can't I erase this USB key.

    Thanks for reading. I hope you can help me or tell me at least!

    You must delete and format the USB stick in the form of FAT. What is a USB2 flash drive? A GPT with a FAT partition will not work.

    Please see Re: Please format the USB key as a single partition FAT.? on how to do to erase/format the USB.

Maybe you are looking for

  • Why doesn't Firefox 33 arrested properly?

    I have just had an update to V33 because I did not see this problem before today. I myself was not playing with the configuration in the last two weeks. (Not sure when the last time that I actually closed Firefox successfully, but it was certainly in

  • Satellite Pro A60: External monitor Shimmers

    I use an A60 Pro of the Satellite with a second screen (tft) as a dual display configuration. There is a very sensitive landscape shimmer that moves on the screen when viewing images or the dark backgrounds on the second monitor. I tried the monitor

  • Re: Satellite A100 - display has turned to the high side down

    my screen turned upside on my Toshiba A100 lap topHow can I fix back to normal? brijoy1i

  • ERROR 0 x 800106 I can find my Windows Defender

    error 0 x 8000106 I can't find Windows Defender HELPMEEEE!

  • Can not view my firewall settings

    When I try to view my security setting the parameters of the firewall I get a message that due to an unidentified problem, windows cannot display windows firewallParameters. This has never happened before, what could cause this and how can I solve th