Search found 32 matches
- 28 Apr 2024 14:25
- Forum: DOS Batch Forum
- Topic: Need help with misbehaving DOS code
- Replies: 2
- Views: 7631
Need help with misbehaving DOS code
I made a batch file to optimise PDF files with Ghostscript... The first version adds '-compressed' to the newly created PDF file. I wanted to make the same code but overwrite the original. I've tried using Google Gemini and Chat GPT, the code they give seems to be OK when I read through... but doesn...
- 20 Oct 2023 06:47
- Forum: DOS Batch Forum
- Topic: Is it worth learning Powershell?
- Replies: 10
- Views: 48780
Is it worth learning Powershell?
I've always stuck to DOS for small things I need to get done.
Just wondering if it's worth investing time getting to know Powershell?
Will it benefit me more in anyway?
Just wondering
Just wondering if it's worth investing time getting to know Powershell?
Will it benefit me more in anyway?
Just wondering
- 20 Oct 2023 06:42
- Forum: DOS Batch Forum
- Topic: What's the command for connecting/disconnecting to Wifi?
- Replies: 1
- Views: 13402
What's the command for connecting/disconnecting to Wifi?
I've got a command that I use, it's something like: netsh wlan connect ssid=wifi_ssid But now I have a problem. The Wifi on my laptop is gone. So I've got a USB Wifi dongle. My command doesn't work anymore as it says I need to specify the wifi adapter or something. I think I can work out how to make...
- 07 Dec 2022 07:00
- Forum: DOS Batch Forum
- Topic: DOS search for file contents? Like Grep
- Replies: 2
- Views: 8982
DOS search for file contents? Like Grep
I need to search file contents. 99% of the time CSV files. Windows explorer has a setting when searching that allows you to search file contents. This is great. Except it doesn't always work. I've used Grep in the past. That was a long time ago. I don't actually want to install Grep. But then just w...
- 13 Jan 2021 17:59
- Forum: DOS Batch Forum
- Topic: Need help running imagemagick command over many files
- Replies: 9
- Views: 11124
Re: Need help running imagemagick command over many files
Code: Select all
1>nul convert "%~1" -resize 300 "%output_name%"
No joy
I'm sure it's only a small tweak away from working
Let me know if you can suggest anything else
Thanks
- 13 Jan 2021 09:51
- Forum: DOS Batch Forum
- Topic: Need help running imagemagick command over many files
- Replies: 9
- Views: 11124
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...
- 13 Jan 2021 08:11
- Forum: DOS Batch Forum
- Topic: Need help running imagemagick command over many files
- Replies: 9
- Views: 11124
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.
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.
- 12 Jan 2021 22:09
- Forum: DOS Batch Forum
- Topic: Need help running imagemagick command over many files
- Replies: 9
- Views: 11124
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...
- 11 Jan 2021 21:59
- Forum: DOS Batch Forum
- Topic: Need help running imagemagick command over many files
- Replies: 9
- Views: 11124
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...
- 09 Mar 2018 12:34
- Forum: DOS Batch Forum
- Topic: Need help running code to run on many selected files
- Replies: 9
- Views: 9389
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...
- 09 Mar 2018 06:26
- Forum: DOS Batch Forum
- Topic: Need help running code to run on many selected files
- Replies: 9
- Views: 9389
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...
- 08 Mar 2018 13:27
- Forum: DOS Batch Forum
- Topic: Need help running code to run on many selected files
- Replies: 9
- Views: 9389
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...
- 04 Mar 2018 18:42
- Forum: DOS Batch Forum
- Topic: Need help running code to run on many selected files
- Replies: 9
- Views: 9389
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...
- 21 Aug 2017 16:47
- Forum: DOS Batch Forum
- Topic: Problem right clicking many files
- Replies: 7
- Views: 7559
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...
- 21 Aug 2017 06:38
- Forum: DOS Batch Forum
- Topic: Problem right clicking many files
- Replies: 7
- Views: 7559
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
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