Search found 146 matches

by PAB
24 Feb 2025 13:46
Forum: DOS Batch Forum
Topic: Put Desktop to sleep from Laptop
Replies: 5
Views: 3033

Re: Put Desktop to sleep from Laptop

Thanks for the reply miskox , Unfortunately that has nothing to do with my problem. The Desk_Sleep.bat on the Desktop computers Desktop runs correctly if I run it directly on the Desktop computers Desktop. What I need is to be able to run [EXECUTE] Desk_Sleep.bat from my Laptop. Thanks again.
by PAB
24 Feb 2025 06:58
Forum: DOS Batch Forum
Topic: Put Desktop to sleep from Laptop
Replies: 5
Views: 3033

Put Desktop to sleep from Laptop

Put Desktop to sleep from Laptop Good afternoon, I have managed to investigate, acquire, and adapt a script to wake-up my Desktop computer from my Laptop computer. My Desktop computer has a shared internal HDD and a shared USB connected HDD which are both available from my Laptop when I wake-up my D...
by PAB
24 Feb 2025 06:37
Forum: DOS Batch Forum
Topic: [SOLVED] Batch Script ignores folders with spaces
Replies: 8
Views: 4332

Re: [SOLVED] Batch Script ignores folders with spaces

Thanks for another version Lucky4Me.

Sorry I haven't replied earlier but I have been in hospital !
This being old is not all its cracked up to be !

Anyway, thank you VERY much again, it is appreciated.
by PAB
29 Jan 2025 19:10
Forum: DOS Batch Forum
Topic: [SOLVED] Batch Script ignores folders with spaces
Replies: 8
Views: 4332

Re: [SOLVED] Batch Script ignores folders with spaces

Thank you so much Lucky4Me for taking the time to help me. It is appreciated. BOTH codes work great. I will be using the 'Exclude' code as there are very few 'File Types' that are relevant to my needs. The 'Exclude' code also lists the files output in the selected directory in alphabetical order whi...
by PAB
29 Jan 2025 13:49
Forum: DOS Batch Forum
Topic: [SOLVED] Batch Script ignores folders with spaces
Replies: 8
Views: 4332

Re: [SOLVED] Batch Script ignores folders with spaces

Just one more question please if I may.

How can I get all files EXCEPT .jpg, .mp4 and .png.

Instead of . . .

Code: Select all

set "IFN=I:\Test\Paul\Paul No Way\*.*"
Or would it be something in here maybe ? . . .

Code: Select all

for %%f 
Thanks again in advance.
by PAB
28 Jan 2025 16:21
Forum: DOS Batch Forum
Topic: [SOLVED] Batch Script ignores folders with spaces
Replies: 8
Views: 4332

Re: Batch Script ignores folders with spaces

Good evening,

Can you hear that noise Lucky4Me ?
It is me slapping my weary old head.
It worked perfectly, thank you SO much.

Best Regards, Paul.
by PAB
28 Jan 2025 08:54
Forum: DOS Batch Forum
Topic: [SOLVED] Batch Script ignores folders with spaces
Replies: 8
Views: 4332

[SOLVED] Batch Script ignores folders with spaces

Good afternoon, I have this script which works great on folders that do NOT have any spaces in the filename . . . @echo off setlocal EnableDelayedExpansion set "IFN=I:\Test\Paul\Paul No Way\*.*" set "OFN=COPIED_to_SINGLE_FILE.log" if exist %OFN% (del /f /q %OFN% >nul 2>&1) echo %IFN% &:: This shows ...
by PAB
22 May 2023 12:00
Forum: DOS Batch Forum
Topic: [SOLVED] Make Minutes & Seconds output 2 Digits
Replies: 4
Views: 5758

Re: Make Minutes & Seconds output 2 Digits

Thanks jeb, that worked very nicely.

I managed to adapt and apply that to Part 1 of my Script, then to Part 2 of my Script, and then to add Part 1 & Part 2 together to come up with a total runtime for the whole Script.

Thanks again for your time, input, and explanations, it is very much appreciated.
by PAB
21 May 2023 11:59
Forum: DOS Batch Forum
Topic: [SOLVED] Make Minutes & Seconds output 2 Digits
Replies: 4
Views: 5758

Re: Make Minutes & Seconds output 2 Digits

You could prefix the values with "0" and take only the last two characters. set /a [Minutes]=%[T]% / 60 set "min=0%[minutes]%" set "min=%min:~-2%" echo %min_% Thanks jeb. I applied the method to the below but unfortunately it doesn't produce ANY results. I just used [ Get-WinUserLanguageList ] for ...
by PAB
20 May 2023 03:46
Forum: DOS Batch Forum
Topic: [SOLVED] Make Minutes & Seconds output 2 Digits
Replies: 4
Views: 5758

[SOLVED] Make Minutes & Seconds output 2 Digits

Good morning, It has been a LONG time since I was here last due to health issues and I have a problem which I just can't seem to solve. The below works great, except I would like the Minutes & Seconds to show as 2 digits instead of one. The program will run no longer than say 15 minutes so Hours are...
by PAB
15 Feb 2022 07:38
Forum: DOS Batch Forum
Topic: Condense Day-Date-Time Code for Reports.
Replies: 12
Views: 19375

Re: Condense Day-Date-Time Code for Reports.

Thanks again, MMM Is going to be the abreviated month (ex. Feb) MM is going to be the two-digit numeric month (ex. 02) I realise that, but when I used LOWER case, it gave me a two digit number, even though I used mmm . It's not a problem, I was just curious. I think this is what Squashman was reffer...
by PAB
15 Feb 2022 03:44
Forum: DOS Batch Forum
Topic: Condense Day-Date-Time Code for Reports.
Replies: 12
Views: 19375

Re: Condense Day-Date-Time Code for Reports.

Thanks for taking the time to reply Squashman. It also works for the SECOND Script, I just needed to use !Created! instead of %Created% . You would not need to use delayed expansion for the variable and all the other variables if you just got rid of the UNNECESARY parentheses. I don't quite understa...
by PAB
14 Feb 2022 21:03
Forum: DOS Batch Forum
Topic: Condense Day-Date-Time Code for Reports.
Replies: 12
Views: 19375

Re: Condense Day-Date-Time Code for Reports.

Thanks again for the reply. Brilliant, that works VERY nicely for the FIRST Script. It also works for the SECOND Script, I just needed to use !Created! instead of %Created% . That gets rid of so much code it is unbelievable. I will test further tomorrow because it is 03:14 a.m. GMT here and I need t...
by PAB
14 Feb 2022 20:25
Forum: DOS Batch Forum
Topic: Condense Day-Date-Time Code for Reports.
Replies: 12
Views: 19375

Re: Condense Day-Date-Time Code for Reports.

Thanks AR Coding for the reply, it is appreciated.

Yes, I am open to using PowerShell within CMD [ like you have ], but not pure PowerShell.

Unfortunately, that does not work. I assume that was specifically for the first Script?

Thanks again.
by PAB
14 Feb 2022 15:49
Forum: DOS Batch Forum
Topic: Condense Day-Date-Time Code for Reports.
Replies: 12
Views: 19375

Condense Day-Date-Time Code for Reports.

Good evening, I hope you are ALL well and staying safe. I have many Scripts that produce Reports, some single Scripts, and one that is menu driven and contains about 80+ Scripts. They ALL work great! On ALL of them, I like to have the output include WeekDay DD-MMM-YYY HH:MM:SS . So the typical outpu...