Archivio per la categoria ‘windows’

How To Prevent A USB Drive From Running Anything Automatically In Windows

Novembre 17, 2009

i experienced this trick to disable autoplay on a USB drive.
Note that this trick works only for one USB drive, the one you intend to modify; it’s not a techique to disable autoplay in general (for that use, use Group Policy option).
Make an “autorun.inf” FOLDER on the drive, set it to hidden and system and create in it an udeletable folder.
From command prompt into root folder of USB drive (cmd):

mkdir autorun.inf (this creates an autorun folder)

attrib +s +h autorun.inf (makes it hidden and system)

cd autorun.inf (opens the folder)

mkdir .\con\ (this creates an undeletable folder inside the autorun folder; write exact characters)

No more autorun.inf viruses possible.

thanks to Jon, Island Boy and David from
http://www.makeuseof.com/tag/how-to-prevent-a-usb-drive-from-running-anything-automatically-in-windows/

Create a file of a certain size in Windows XP and later

Giugno 26, 2008

If you need to create a file of a certain size and the file contents don’t matter, you can use the Fsutil command as follows

fsutil file createnew <filename> <filesize in byte>

For example,

fsutil file createnew d:\temp\1mbfile.txt 1000000

creates a 1MB file named 1mbfile.txt in the d:\temp folder. I used this command to create files of different sizes to make some local network speed test