Tech-Wonders.com

Menu
  • Apps
  • How To
  • Gadgets
    • Mobile
  • Software
  • Technology
  • Sitemap
  • Contact Us

Tech-Wonders.com » Security

Block viruses from entering your USB drive

USB drives are the most popular virus carriers these days. Here is the simple yet powerful command prompt trick with which you can create a dummy file that can block any incoming virus to your Pen drive.

1. Note down the free space in bytes left in your USB drive. To do that, just right-click with your mouse on your USB drive and select properties where you can find the Used space and free space shown in bytes.
Block viruses from entering your USB drive 1

2. Go to start–>Run… and type cmd and click Ok to open the command prompt(DOS) window. Block viruses from entering your USB drive 2

3. At the command prompt type the command having the syntax as follows:

fsutil file createnew [USB drive pathfilename] [free space in bytes]

for example, if the drive letter for your USB drive is ‘K’, the free space available is 1528864758 bytes and filename you want to use is dummyfile then the command you have to type is:

fsutil file createnew k:dummyfile 1528864768

As soon as you press ENTER after giving this command a file will be created in you USB drive occupying all the free space available.
Block viruses from entering your USB drive 3
Now your USB drive cannot accommodate any incoming viruses as it has zero free space. You can check that from your drive properties. As you can see in the image below the free space left is zero as we have created a dummy file with all the free space available in the step above.Block viruses from entering your USB drive 4
And whenever you want to copy files to your USB drive from secured sources, just delete that dummyfile created and copy the data you wanted and again create a dummyfile that occupies the remaining free space.

This command prompt trick is the best preventive measure to block any virus form entering your USB drive.

Share
Tweet
Linkedin
Reddit
Pinterest
Email
Prev Article
Next Article

Leave a Reply

Cancel reply

Related Posts

  • Be Safe on VPN. Stay Safe Online.
    10 Best Ways To Stay Safe Online …
  • Torrents downloading
    Why Are Other Torrents Blocked In Some …
  • Enable HTTPS to Secure Your Facebook Browsing Experience
    Enable HTTPS to Secure Your Facebook Browsing …
  • Uses of Current Transformer CT
    Uses of Current Transformer CT

Tech-Wonders.com

Technology Blog

About the Admin

RamaRaoBobby Hi there! I am RamaRao Bobby, Founder and Editor-in-Chief of
Tech-Wonders.com, Kakinada’s Top Technology Blog.

I am an avid Dog Lover and Tech Enthusiast. Read More

Recent Comments

  • Vivek Kumar on 10 Local SEO Services Tips that Deliver Better Results
  • Khushi Patel on The Ultimate Guide to Magento Hosting

Categories

Always Remain in Touch

  • Archives
  • Disclaimer
  • Privacy Policy
  • Featured Comments
Copyright © 2021 Tech-Wonders.com