autorun

Not knowing the destination of USB in CMD

眉间皱痕 提交于 2021-02-07 10:24:25
问题 I am trying to copy files from my USB drive to my PC automatically by using a batch file (.bat) I know I can do something like that xcopy "C:\xxxx\xxxx\xxxx.xxx" "C:\xxxx\xxx\xxxx\xxx.exe" /E /H /I But I faced a little problem... What if I don't know the exact letter of the drive, where the USB is inserted? How am I able to copy those files automatically? If this is possible, can someone please post a simple "xcopy" command from USB to PC. Thanks! 回答1: Can you add a generic file to the root

Not knowing the destination of USB in CMD

守給你的承諾、 提交于 2021-02-07 10:23:59
问题 I am trying to copy files from my USB drive to my PC automatically by using a batch file (.bat) I know I can do something like that xcopy "C:\xxxx\xxxx\xxxx.xxx" "C:\xxxx\xxx\xxxx\xxx.exe" /E /H /I But I faced a little problem... What if I don't know the exact letter of the drive, where the USB is inserted? How am I able to copy those files automatically? If this is possible, can someone please post a simple "xcopy" command from USB to PC. Thanks! 回答1: Can you add a generic file to the root

Not knowing the destination of USB in CMD

你说的曾经没有我的故事 提交于 2021-02-07 10:23:32
问题 I am trying to copy files from my USB drive to my PC automatically by using a batch file (.bat) I know I can do something like that xcopy "C:\xxxx\xxxx\xxxx.xxx" "C:\xxxx\xxx\xxxx\xxx.exe" /E /H /I But I faced a little problem... What if I don't know the exact letter of the drive, where the USB is inserted? How am I able to copy those files automatically? If this is possible, can someone please post a simple "xcopy" command from USB to PC. Thanks! 回答1: Can you add a generic file to the root

Auto run appilication while plug in USB drive [closed]

五迷三道 提交于 2021-02-06 05:49:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . Improve this question I am trying to auto run an application after I've plugged in my USB pen drive. Is there any way to automatically open myappilication.exe from my USB root file, instead of showing the option an list of which applications I'd like to run. 回答1: Just copy paste from a site that tells how to

Auto run appilication while plug in USB drive [closed]

旧巷老猫 提交于 2021-02-06 05:49:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . Improve this question I am trying to auto run an application after I've plugged in my USB pen drive. Is there any way to automatically open myappilication.exe from my USB root file, instead of showing the option an list of which applications I'd like to run. 回答1: Just copy paste from a site that tells how to

How can I run PHP script in certain interval (e.g. once a day)?

雨燕双飞 提交于 2020-01-20 04:54:04
问题 I have a php script that reads one file through http(the file is on other domain). I would like to read this file only once or twice a day, instead of connecting to it every time the website is refreshed. Is there any other way than doing it with cron? I dont want to use cron cause I prefer to setup this behaviour in the script itself .. so it is flexible, so I can use it anywhere without setting up cron every time. thanks 回答1: If you can't or don't want to use use cron and it's ok to update

trigger setup.exe when I mount an iso

不羁的心 提交于 2020-01-15 09:43:09
问题 Whenever I mount an ISO. i want the setup.exe to be triggered automatically. There is a autorun.inf file to handle this but still nothing works. Contents of autorun.inf [autorun] open=setup.exe what am I missing here. any registry entry I should change. Please help me out. 回答1: ISO : Have you confirmed that this is even possible from a mounted image? (Seems not to be). In other words, did you try to put your autorun.inf and friends on a DVD or a USB stick and then testing whether auto-run

trigger setup.exe when I mount an iso

不羁岁月 提交于 2020-01-15 09:42:30
问题 Whenever I mount an ISO. i want the setup.exe to be triggered automatically. There is a autorun.inf file to handle this but still nothing works. Contents of autorun.inf [autorun] open=setup.exe what am I missing here. any registry entry I should change. Please help me out. 回答1: ISO : Have you confirmed that this is even possible from a mounted image? (Seems not to be). In other words, did you try to put your autorun.inf and friends on a DVD or a USB stick and then testing whether auto-run

How do I randomly pick an icon for a pen drive?

不问归期 提交于 2020-01-06 07:01:28
问题 I've seen a tutorial online that explained how to change the icon of a pen drive once inserted using an autorun.inf file and a .ico file, and it worked perfectly, but I wanted to know if there's a way to choose a random file from a list of .ico files inside the pen drive. Here's the code I'm using for the normal icon [Autorun] Icon=IconName.ico Label=PENDRIVE If this can't be directly done using the autorun.inf file, please let me know an alternative method, even if it requires other files

Autorun.inf opens a batch file which creates a directory doesn't work

心已入冬 提交于 2019-12-24 17:06:25
问题 I'm trying to make a autorun.inf file which would open a .bat file from a flash drive. What I have in the autorun.inf file: [autorun] open=launch.bat icon=icon.ico What I have in the launch.bat file: @echo off ::start mkdir "C:\ThisIsATest" exit When I have inserted the flash drive to my personal computer, I have noticed that the icon of the drive has changed, but I can't see the effect of the launch.bat file. I have tried the batch file to see if it works and it works. Thus, I believe that