Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


General Help

  • Please log in to reply
4 replies to this topic

#1 Zacoru


  • Members
  • 29 posts
  • Local time:11:58 AM

Posted 06 March 2014 - 07:18 AM

I am having some trouble with python in which I would like to remove all ".py" files from my computer. There are a few in which I want to save and put in a flash drive, but others I can delete. These files are scattered throughout my hard drive in different locations. Is there any way to make a program (maybe in batch) that would take all files with a .py extension and place it in 1 folder?



BC AdBot (Login to Remove)


#2 Sirawit


    Bleepin' Brony

  • Malware Response Team
  • 4,162 posts
  • Gender:Male
  • Location:Thailand
  • Local time:10:58 PM

Posted 06 March 2014 - 08:11 AM

If you really want quick solution
1. Go to C:\ and shift + right click > open command window here.
2. Type in

Move /-y *.py "your final folder full path"

Note: change /-y to /y if you want to overwrite files without prompt.
3. Hit enter

I'm not sure this will move file in all drives or not.
If not, repeat above step with each drive.

Thank you.

Edited by Sirawit, 06 March 2014 - 08:13 AM.

If I don't reply back to you in 2 days, feel free to send me a PM.


“You’re lying… just like you were lying to me before. You have to hate me. I’ve been the worst daughter in the world… you should hate me.”

“But I don’t, Nyx. Because, Nyx, I’m your mother, and a mother will always love her daughter, no matter what.” -Past sins by Pen stroke.

#3 zingo156


  • BC Advisor
  • 3,345 posts
  • Gender:Male
  • Local time:10:58 AM

Posted 06 March 2014 - 08:49 AM

The other option you could try is opening "computer" Click on the hard drive you have your files on and in the "search computer" bar in top right corner type *.py and then click the search button, this will list all of the *.py files and you can copy them directly to any folder you would like.

If I am helping you with a problem and I have not responded within 48 hours please send me a PM.

#4 Billy O'Neal

Billy O'Neal

    Visual C++ STL Maintainer

  • Malware Response Team
  • 12,304 posts
  • Gender:Male
  • Location:Redmond, Washington
  • Local time:08:58 AM

Posted 06 March 2014 - 12:57 PM

pevFind --c#move "#f" C:\Path\To\Your\Folder\# C:\*.py > runthis.bat && runthis.bat


Or something similar should work.


Edited by Billy O'Neal, 06 March 2014 - 12:57 PM.

Twitter - My statements do not establish the official position of Microsoft Corporation, and are my own personal opinion. (But you already knew that, right?)
Posted Image

#5 Zacoru

  • Topic Starter

  • Members
  • 29 posts
  • Local time:11:58 AM

Posted 06 March 2014 - 02:28 PM


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users