Search found 28 matches

by OM3
13 Jan 2021 17:59
Forum: DOS Batch Forum
Topic: Need help running imagemagick command over many files
Replies: 9
Views: 884

Re: Need help running imagemagick command over many files

Code: Select all

1>nul convert "%~1" -resize 300 "%output_name%"
Yes, that's what I did in the first place after you suggested
No joy 😕
I'm sure it's only a small tweak away from working
Let me know if you can suggest anything else
Thanks
by OM3
13 Jan 2021 09:51
Forum: DOS Batch Forum
Topic: Need help running imagemagick command over many files
Replies: 9
Views: 884

Re: Need help running imagemagick command over many files

Oh... no, I didn't do that I did as you suggested: 1>nul convert input.jpg -resize 300 output.jpg I'm not sure how I could call the bat file The bat file receives arguements I'm not sure how I can pass those arguements in? Can you suggest anything? I put the bat file in the SendTo folder. I select i...
by OM3
13 Jan 2021 08:11
Forum: DOS Batch Forum
Topic: Need help running imagemagick command over many files
Replies: 9
Views: 884

Re: Need help running imagemagick command over many files

@elzooilogico
Tried that
Didn't work
Still seeing the output
If I can't find an answer, I'll either live with the output or just use echo off. But a shame if there isn't a solution.
by OM3
12 Jan 2021 22:09
Forum: DOS Batch Forum
Topic: Need help running imagemagick command over many files
Replies: 9
Views: 884

Re: Need help running imagemagick command over many files

@ShadowThief You are simply amazing! :) Thank you. I added /Q so the deleting won't prompt me. Naming the file convert caused a problem? OMG. I think I would have been stuck here for weeks trying to debug that one. :oops: Question... @echo off is great... Don't really need to see the output on scree...
by OM3
11 Jan 2021 21:59
Forum: DOS Batch Forum
Topic: Need help running imagemagick command over many files
Replies: 9
Views: 884

Need help running imagemagick command over many files

I want to run this code on many tiles: convert input.jpg -resize 300 output.jpg I had some old code that I thought worked: :loop convert "%~1" -resize 300 "%~1.jpg" shift if not "%~1"=="" goto :loop pause The code doesn't work 😕 Not sure what I'm doing wrong. It just goes on a loop forever. I'm sure...
by OM3
09 Mar 2018 12:34
Forum: DOS Batch Forum
Topic: Need help running code to run on many selected files
Replies: 9
Views: 3769

Re: Need help running code to run on many selected files

cool! sounds so awesome. if i had this in my file is this correct: [HKEY_CLASSES_ROOT\*\shell\My Item\Command] @="cmd /E:ON /F:ON /C \"@((for %%s in (\"%1\") do convert %%s -strip %%s) & pause)\"" If OK... how can I remove? Also... how can I create parents - when selected, another set of menu option...
by OM3
09 Mar 2018 06:26
Forum: DOS Batch Forum
Topic: Need help running code to run on many selected files
Replies: 9
Views: 3769

Re: Need help running code to run on many selected files

guys thanks for the replies. yes... code seems to work :) but in output i see: C:\Users\me\images>convert "C:\Users\omars\images\image8.jpg" -strip "C:\Users\me\images\image8.jpg" C:\Users\me\images>shift C:\Users\me\images>if not "" == "" goto :loop surely i shouldnt see that? just wondering if loo...
by OM3
08 Mar 2018 13:27
Forum: DOS Batch Forum
Topic: Need help running code to run on many selected files
Replies: 9
Views: 3769

Re: Need help running code to run on many selected files

thanks for the replies guys. let's say i have 10 files. i choose 5 of these. for each of these 5, i want this command to be run: convert abc.jpg -strip abc.jpg in this example, abc.jpg was one of the 5 selected files. does that make sense? thanks (PS... I wish the email notification would work on th...
by OM3
04 Mar 2018 18:42
Forum: DOS Batch Forum
Topic: Need help running code to run on many selected files
Replies: 9
Views: 3769

Need help running code to run on many selected files

I have this code I modified from some other code I have: REM This code removes all Exif on selected files - should be images of course REM Assuming you have Image Magick installed - this is the command that is used REM @echo off :loop REM convert <input file> -strip <output file> convert "%~1" -stri...
by OM3
21 Aug 2017 16:47
Forum: DOS Batch Forum
Topic: Problem right clicking many files
Replies: 7
Views: 2885

Re: Problem right clicking many files

@aGerman, thanks for the reply. It executes with only one file name. I can select many files and right click. I'm not 100% sure, but it either takes the item right clicked or the first in the list and passes through. I'm forced to execute manually on a DOS prompt. I'm sure it's a Windows related beh...
by OM3
21 Aug 2017 06:38
Forum: DOS Batch Forum
Topic: Problem right clicking many files
Replies: 7
Views: 2885

Re: Problem right clicking many files

anyone?
still stuck with this problem
it's so annoying :(

would i use powershell to do similar?
never used before ever. but cant be more than one line of code like the dos version?

thanks
by OM3
10 Aug 2017 12:24
Forum: DOS Batch Forum
Topic: Problem right clicking many files
Replies: 7
Views: 2885

Re: Problem right clicking many files

thanks for the replies guys i intentionally left out details the code that gets executed is something like: "d:\folder 1\my folder 2\abc def xyz\more spaces\my code.exe" "d:\folder 1\folder abc def\zy ze\ab23c.csv" "d:\folder 1\folder abc def\zy ze\bbbabc.csv" "d:\...
by OM3
10 Aug 2017 07:05
Forum: DOS Batch Forum
Topic: Problem right clicking many files
Replies: 7
Views: 2885

Problem right clicking many files

I have some code that I can execute on many files. The files are all CSV files. So I can do this: mycode.exe abc.csv xyz.csv pqr.csv I have a batch file with this code: mycode.exe %* So I put this in my SendTo folder. I right click many files in some other folder... And my code works a treat! JUST h...
by OM3
17 Feb 2017 18:16
Forum: DOS Batch Forum
Topic: How to turn off and on ethernet adapter
Replies: 1
Views: 1220

How to turn off and on ethernet adapter

Has anyone got any DOS code to turn off and on the Ethernet adapter? I googled and found this: Start elevated Command Prompt. Get NIC list and index number: wmic nic get name, index Enable NIC with index number: (eg: 7) wmic path win32_networkadapter where index=7 call enable Disable NIC with index ...
by OM3
14 Feb 2017 07:55
Forum: DOS Batch Forum
Topic: How to delete really loooooooooong file names?
Replies: 4
Views: 3342

How to delete really loooooooooong file names?

OK... so I've googled it The the solutions seem to involved super complex answers Why is there no easy and straight forward solution? Why does this problem occur? I can understand that users shouldn't be allowed to have a file name that is 1m chars long - but then set a limit and don't let the limit...