I've just installed a few of the GnuWin32 packages and have a few questions (I'm used to the Mac GUI). I've installed the packages in C:\Program Files\GnuWin32\bin
1) One of the packages I'm using is findutils, which has a 'find' command of course. Since Windows also has a built-in 'find' command, what determines which command gets executed? Is it the order of the paths stored in the PATH environment variable?
2) What is the command (GNUWin32 or built-in) that can allow me to open a list of files with whatever app is associated with them? For example, if I have a folder on the desktop that has some jpgs in it, how can I open them all with say Photoshop?
I think the syntax would look like:
find "C:/path/to/desktop/images" -name "*.jpg" -print0 | xargs -0 <some command to open these files>
Regards,
Sean
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was trying to play with the built-in FOR command but am having problems with the syntax, plus what command would I use to actually launch the file? The 'start' command?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I've just installed a few of the GnuWin32 packages and have a few questions (I'm used to the Mac GUI). I've installed the packages in C:\Program Files\GnuWin32\bin
1) One of the packages I'm using is findutils, which has a 'find' command of course. Since Windows also has a built-in 'find' command, what determines which command gets executed? Is it the order of the paths stored in the PATH environment variable?
2) What is the command (GNUWin32 or built-in) that can allow me to open a list of files with whatever app is associated with them? For example, if I have a folder on the desktop that has some jpgs in it, how can I open them all with say Photoshop?
I think the syntax would look like:
find "C:/path/to/desktop/images" -name "*.jpg" -print0 | xargs -0 <some command to open these files>
Regards,
Sean
1) The order in PATH
2) Correct. You may also use the -exec option to find instead of print0 | xargs ...
what I have done is copy find.exe to gfind.exe so that I can run gfind anywhere without haveing to mess with the windows paths.
To load the jpg's in an app you would need to build a list of them and pass them as arguments to your app (if it supports this).
Im not sure if a call or start is needed.
I was trying to play with the built-in FOR command but am having problems with the syntax, plus what command would I use to actually launch the file? The 'start' command?