[Actual coding thread]A simple moving application

Everything related to programming.
Mgalekgolo
Commando
Posts: 2589
Joined: Thu Jun 24, 2010 6:36 am

Re: [Actual coding thread]A simple moving application

Post by Mgalekgolo » Sat Oct 15, 2011 1:22 pm

That's basically it. I'd rather it not allow for files that are non-png though.
Yarok wrote:There may be a giant dildo protruding from your forehead.
Image

Excend
Commando
Posts: 2791
Joined: Sun May 06, 2007 3:27 am
Location: SiK x Gh0sTs Rehauled.
Contact:

Re: [Actual coding thread]A simple moving application

Post by Excend » Sat Oct 15, 2011 2:41 pm

Well, I believe for the file portion of the selected directory, you can type *.png* and it will select all files in that directory that have .png in their name. So if you're just dumping a folder of photos to another, that would do it. Otherwise I don't know much more in-depth for batch files.
TaxiService wrote:Roses are red
Violets are blue
What a shitty thread
Fuck all of you.

Mgalekgolo
Commando
Posts: 2589
Joined: Thu Jun 24, 2010 6:36 am

Re: [Actual coding thread]A simple moving application

Post by Mgalekgolo » Sat Oct 15, 2011 3:28 pm

What im trying to do:
have a .png file from any directory replace this file:
Image
I want it to have the same name though.
Thats the directory on windows basically.
Its for changing the sprites just so you know.
Yarok wrote:There may be a giant dildo protruding from your forehead.
Image

Sparky
Delta Force
Posts: 4194
Joined: Wed Mar 31, 2004 8:59 pm
Location: New Jersey, USA
Contact:

Re: [Actual coding thread]A simple moving application

Post by Sparky » Sun Oct 16, 2011 5:50 am

Get info on the properties of that file
copy the path and take note of the filename
make a .bat windows batch file to rename the file you drag onto it as a string containing that path and filename according to:
White Knightmare wrote:

Code: Select all

move /-y "Directory\file" "New_Directory"

pause
The -y prompts an error if there is a duplicate file, use /y if you're over writing files.
Either you are groping for answers, or you are asking God and listening to Jesus.

draconic74
Green Beret
Posts: 3470
Joined: Sat Jun 03, 2006 11:08 am
Contact:

Re: [Actual coding thread]A simple moving application

Post by draconic74 » Tue Oct 25, 2011 9:44 am

Monoman wrote:Since you are looking to move files in Windows, why not just create a bat file that moves them?

.bat files in Windows, Terminal or Applescript in OSX
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest