Search found 349 matches

by miskox
19 Jun 2020 01:56
Forum: DOS Batch Forum
Topic: How escape a pipe ?
Replies: 3
Views: 260

Re: How escape a pipe ?

Does it work If you add ^ ? for /f "delims=" %I in ('mshta "about:<OBJECT id=HTMLDlgHelper classid="CLSID:3050F4E1-98B5-11CF-BB82-00AA00BDCE0B"></OBJECT><SCRIPT language="VBSCRIPT">Sub window_onload : a=HtmlDlgHelper.object.openfiledlg("C:\windows.iso", ,"*.iso^|","Select"): CreateObject("Scripting....
by miskox
20 Apr 2020 03:36
Forum: DOS Batch Forum
Topic: How to disable Avast until reboot
Replies: 7
Views: 1696

Re: How to disable Avast until reboot

I think it would be better to ask the Avast Forum for this how to disable it.

saso
by miskox
20 Apr 2020 03:27
Forum: DOS Batch Forum
Topic: how to stop a space from aborting a batch process
Replies: 4
Views: 1510

Re: how to stop a space from aborting a batch process

Use Quotes with filename/directory:

Code: Select all

Start "" del /q "c:\program files\glarysoft\malware hunter\mhtray.exe"
Saso
by miskox
14 Apr 2020 12:50
Forum: DOS Batch Forum
Topic: Sticky post (batch script collection)
Replies: 1
Views: 1533

Sticky post (batch script collection)

Here (https://www.dostips.com/forum/viewtopic.php?p=61727#p61727) Penpen links to Batch script collection (outsourced) (https://www.dostips.com/forum/viewtopic.php?f=3&t=7420&p=49133#p49133). I must say that I really like this post and would like to see it 'sticky' at the top of the forum (it can be...
by miskox
07 Apr 2020 03:18
Forum: DOS Batch Forum
Topic: Shift and %*
Replies: 5
Views: 2229

Re: Shift and %*

Code: Select all

shift /n
?

See shift /?

Saso
by miskox
06 Apr 2020 03:35
Forum: DOS Batch Forum
Topic: Copy CD contents with CD name
Replies: 16
Views: 2199

Re: Copy CD contents with CD name

Thanks Steffen for a very short version (I am limited with my XP machine...(ROBOCOPY)) (anyway I wouldn't make it this short). Experts are experts.

Saso
by miskox
05 Apr 2020 10:48
Forum: DOS Batch Forum
Topic: Copy CD contents with CD name
Replies: 16
Views: 2199

Re: Copy CD contents with CD name

Did you try my solution? It works for me.

Saso
by miskox
04 Apr 2020 11:35
Forum: DOS Batch Forum
Topic: Copy CD contents with CD name
Replies: 16
Views: 2199

Re: Copy CD contents with CD name

This could be a start. Replace three strings with your data (this could be automated but requires more time). If folder already exists .cmd exits. Change XCOPY qualifiers if required. ECHO BEL coudl be added at the end so you know when the operation completes. @echo off :begin REM Update strings bel...
by miskox
28 Dec 2019 14:13
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 107
Views: 86565

Re: CONVERTCP.exe - Convert text from one code page to another

FYI: first version (.cpp) has 131 lines (including some 50 lines of comments and help). Version 7.2 (.c) has (7.3 source is not available yet) has 1573 lines.

Saso
by miskox
27 Dec 2019 03:16
Forum: DOS Batch Forum
Topic: Set statement not working
Replies: 2
Views: 1141

Re: Set statement not working

First you must replace ' with ": set "FullTarget1=Docfxit 192.168.168.9" set "FullTarget2=DocfxitLT 192.168.168.7" set "FullTarget3=ErrolLT530 192.168.2.5" set "FullTarget4=CONSOLE2-I5 192.168.168.16" Then replace: If defined FullTarget4 (If /i not %FullTarget4%.=="". echo. %FullTarget4%>>%~f0.txt) ...
by miskox
25 Dec 2019 12:38
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 107
Views: 86565

Re: CONVERTCP.exe - Convert text from one code page to another

I received the information that option /l is broken on XP. The update to v7.1 is supposed to fix that. Although I have to wait for feedback since I can't test on XP anymore. Virustotal scans of version 7.1: x86: https://www.virustotal.com/gui/file/86099ad973b84af66e2e4e517d8a6d67b66222e2c6246b0747a...
by miskox
25 Dec 2019 12:25
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 107
Views: 86565

Re: CONVERTCP.exe - Convert text from one code page to another

Steffen: thanks again for all the updates. If required you can remove the XP support (I will use the latest version supported by XP (as mentioned I only need CP852 <-> CP1250 conversion)).

As it looked like for a simple project...

Saso
by miskox
13 Nov 2019 10:49
Forum: DOS Batch Forum
Topic: Determine if laptop is running on AC or battery
Replies: 7
Views: 2133

Re: Determine if laptop is running on AC or battery

Your first solution works great on laptop. Sorry for a false alarm.

Thanks.

Saso