Search found 3909 matches

by aGerman
23 Jan 2021 14:46
Forum: DOS Batch Forum
Topic: vbs http download slow
Replies: 4
Views: 27

Re: vbs http download slow

It's not too complicated. You don't need the OpenTextFile and stuff, and you don't need the For-Next loop. Just capture the responseBody in a stream object and save it. Like that: Dim objADOStream Set objADOStream = CreateObject("ADODB.Stream") objADOStream.Type = 1 objADOStream.Mode = 3 objADOStrea...
by aGerman
23 Jan 2021 14:32
Forum: DOS Batch Forum
Topic: vbs http download slow
Replies: 4
Views: 27

Re: vbs http download slow

It seems to write byte by byte. I think I have something in my collection which uses an ADO stream object. I just have to find it ...

Steffen
by aGerman
23 Jan 2021 14:27
Forum: DOS Batch Forum
Topic: SORT supports the /UNIQUE option!
Replies: 5
Views: 26

Re: SORT supports the /UNIQUE option!

SS64 lists it as being available on Win 10. However, I never noticed it. Shame on Microsoft that they didn't even document such a helpful feature :(
https://ss64.com/nt/sort.html

Steffen
by aGerman
22 Jan 2021 11:50
Forum: DOS Batch Forum
Topic: Copy each folder from 2020 named (NAME) to its mirror location in 2021
Replies: 1
Views: 23

Re: Copy each folder from 2020 named (NAME) to its mirror location in 2021

Give that a go.

Code: Select all

@echo off
for /d %%i in ("2020\*") do (
  if exist "%%i\Reference_asset_folder\" (
    robocopy "%%i\Reference_asset_folder" "2021\%%~nxi\Reference_asset_folder" /s /e
  )
)
Steffen
by aGerman
22 Jan 2021 11:25
Forum: DOS Batch Forum
Topic: JSON file in wrong format.
Replies: 3
Views: 90

Re: JSON file in wrong format.

The outdated version of cURL that ships with Win 10 doesn't support JSON formatting. However the Google API doesn't even return valid JSON. It's rather a JavaScript assignment statement which begins whith var Ports = and ends with a semicolon. You would have to remove that anyway before you can pret...
by aGerman
14 Jan 2021 15:01
Forum: DOS Batch Forum
Topic: How to write REM Comments in a new file
Replies: 4
Views: 184

Re: How to write REM Comments in a new file

I assume you know the difference between > and >>, right?

Steffen
by aGerman
12 Jan 2021 14:39
Forum: DOS Batch Forum
Topic: Search broken
Replies: 2
Views: 186

Re: Search broken

Yes, lately some functionality of the forum is broken and causes SQL errors. The forum admin has been informed already. Please be patient, it may take a while to solve these issues.

Steffen
by aGerman
06 Jan 2021 11:50
Forum: DOS Batch Forum
Topic: which.exe - The best of Windows where.exe and Unix which, and some more
Replies: 13
Views: 10291

Re: which.exe - The best of Windows where.exe and Unix which, and some more

Thanks Jean-François. After cross reading there also seems to be an explanation of how SystemUWPLauncher is involved. Worth digging deeper if I find some time ...

Steffen
by aGerman
05 Jan 2021 15:03
Forum: DOS Batch Forum
Topic: which.exe - The best of Windows where.exe and Unix which, and some more
Replies: 13
Views: 10291

Re: which.exe - The best of Windows where.exe and Unix which, and some more

I bookmarked the topic. Thanks! I've a question as to the ULONG Version; in your struct. Are there any references? All resources I found indicate that this is the number of strings in the list. However, since there are actually 4 strings in the list (if we count the ASCII digit at the end as string)...
by aGerman
02 Jan 2021 07:51
Forum: DOS Batch Forum
Topic: how can one explain this problem of from the command line, getting wordpad to open a text file?
Replies: 5
Views: 405

Re: how can one explain this problem of from the command line, getting wordpad to open a text file?

Well, you got it working on your machine now. However, it doesn't say anything about portability. E.g. on my machine I have a DE-de\wordpad.exe.mui. And the program has definitely dependencies on system DLLs, too. They get also updated and certain entry points may not be available depending on a par...
by aGerman
02 Jan 2021 05:30
Forum: DOS Batch Forum
Topic: how can one explain this problem of from the command line, getting wordpad to open a text file?
Replies: 5
Views: 405

Re: how can one explain this problem of from the command line, getting wordpad to open a text file?

Yes, the wordpad process is running. Otherwise it wouldn't be able to generate the message box :wink: However, it can't run properly because it depends on libraries (dll), and maybe other files in the original location which you didn't copy. And that's the reason why it isn't able to run flawlessly ...
by aGerman
02 Jan 2021 04:35
Forum: DOS Batch Forum
Topic: how can one explain this problem of from the command line, getting wordpad to open a text file?
Replies: 5
Views: 405

Re: how can one explain this problem of from the command line, getting wordpad to open a text file?

Two things: - You destroy your Path environment. You may prepend or append a new value if necessary, like that: set "PATH=C:\Program Files\Windows NT\Accessories;%PATH%" - Why do you expect WordPad.exe is running if you copy it to the current directory? It won't! And since searching is performed in ...
by aGerman
01 Jan 2021 08:53
Forum: DOS Batch Forum
Topic: How grand folder permission to delete it
Replies: 1
Views: 335

Re: How grand folder permission to delete it

To answer your question - take a look at the TAKEOWN and ICACLS commands. Something like ... takeown /R /F "the path here" icacls "the path here" /grant %username%:F ... might help. (untested though) Side notes: - Your script has to be run elevated. Bail out if not. - Thake care of parenthesizing. Y...
by aGerman
30 Dec 2020 18:49
Forum: DOS Batch Forum
Topic: CmdBkg - use bitmap as background to console window
Replies: 73
Views: 31062

Re: CmdBkg - use bitmap as background to console window

I actually ran this on my terribly worn down Win7 machine with the noisiest fan known to mankind Haha, sorry for causing those inconveniences :lol: I was almost about to setup Win 7 on VirtualBox. But out of my experiences the appearence and behavior in VirtualBox is pretty different. Even an outwo...
by aGerman
30 Dec 2020 07:29
Forum: DOS Batch Forum
Topic: CmdBkg - use bitmap as background to console window
Replies: 73
Views: 31062

Re: CmdBkg - use bitmap as background to console window

I guess I should have explained it better :roll: I took care of using functions and flags that have already been available on XP. So I don't expect that the tool isn't running on Win 7 anymore. It's merely about my first two bullet points. - I recall discussing with you about the "weird" extended wi...