Page 2 of 2

Re: [Actual coding thread]A simple moving application

Posted: Sat Oct 15, 2011 1:22 pm
by Mgalekgolo
That's basically it. I'd rather it not allow for files that are non-png though.

Re: [Actual coding thread]A simple moving application

Posted: Sat Oct 15, 2011 2:41 pm
by Excend
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.

Re: [Actual coding thread]A simple moving application

Posted: Sat Oct 15, 2011 3:28 pm
by Mgalekgolo
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.

Re: [Actual coding thread]A simple moving application

Posted: Sun Oct 16, 2011 5:50 am
by Sparky
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.

Re: [Actual coding thread]A simple moving application

Posted: Tue Oct 25, 2011 9:44 am
by draconic74
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