Search found 1157 matches

by ShadowThief
30 Jan 2024 13:41
Forum: DOS Batch Forum
Topic: SYSTEM account console 254 characters limit
Replies: 4
Views: 6930

Re: SYSTEM account console 254 characters limit

If you think you need the SYSTEM account for something, you're doing something wrong. If you need more than 254 characters for a single command, you're also doing something wrong. You haven't described your use case, so I'll just assume the standard reasons for shoving a bunch of code all at once at...
by ShadowThief
17 Jan 2024 13:26
Forum: DOS Batch Forum
Topic: Batch Parser
Replies: 2
Views: 2195

Re: Batch Parser

There's excellent documentation at https://stackoverflow.com/questions/409 ... se-scripts but I'm not aware of anything interactive.
by ShadowThief
07 Jan 2024 11:34
Forum: DOS Batch Forum
Topic: Is it worth learning Powershell?
Replies: 10
Views: 26089

Re: Is it worth learning Powershell?

I'm talking specifically about the language that uses the cscript and wscript interpreters. https://en.wikipedia.org/wiki/VBScript It's a scripting language for ActiveX that's modeled on Visual Basic and that I've used multiple times as standalone replacements for VBA macros that I've written. Wikip...
by ShadowThief
18 Nov 2023 19:25
Forum: DOS Batch Forum
Topic: The timeout command blocks the W key from closing CMD window
Replies: 3
Views: 12199

Re: The timeout command blocks the W key from closing CMD window

How could this be happening It's obviously a bug in the code. Nobody here is capable of elaborating further because Windows is closed source. more importantly: how to fix / workaround this issue? By pressing one of the 100+ other keys on the keyboard. This is such a non-issue that I'm surprised you...
by ShadowThief
05 Nov 2023 22:22
Forum: DOS Batch Forum
Topic: Problems working a script
Replies: 6
Views: 15939

Re: Problems working a script

That's just my answer, but with no explanations and posted here so they're going to see it even if they don't want to. The entire point of me posting it to pastebin was that this is very clearly a homework question and they asked for help and not a solution so they should have the option of not imme...
by ShadowThief
05 Nov 2023 18:21
Forum: DOS Batch Forum
Topic: Problems working a script
Replies: 6
Views: 15939

Re: Problems working a script

https://pastebin.com/Lh3gEWhL if you want answers rather than general guidance
by ShadowThief
05 Nov 2023 18:11
Forum: DOS Batch Forum
Topic: Problems working a script
Replies: 6
Views: 15939

Re: Problems working a script

The fact that you're saying that you haven't gotten it suggests to me that you have some way of validating the solution, and so this feels a bit like homework. Depending on your teacher's standards and whether or not you just didn't format the code when you pasted it in here, I could argue that ever...
by ShadowThief
03 Nov 2023 10:14
Forum: DOS Batch Forum
Topic: Is it worth learning Powershell?
Replies: 10
Views: 26089

Re: Is it worth learning Powershell?

I will just add this: I think PS is very good for (some?) admin repetive tasks (why I wrote 'some?'? - because I don't take care of servers but this is based on what I read so I don't have such experiences). I use PS almost daily for some special task: I have (my customer really) 150+ Excel files. ...
by ShadowThief
13 Oct 2023 03:31
Forum: DOS Batch Forum
Topic: variables as paths to run?
Replies: 2
Views: 9746

Re: variables as paths to run?

The /p flag is only meant for prompting the user for input, and you only need quotes around the assignment, not on each side of the equals sign - this isn't an if statement. set "windeployqt6=c:\Qt\6.6.0\mingw_64\bin\windeployqt6.exe" set "sourceDir=c:\Qt\Projects\Sources\game_test" set "appPath=c:\...
by ShadowThief
09 Oct 2023 22:44
Forum: DOS Batch Forum
Topic: Variable inside an IF not showing correctly
Replies: 18
Views: 91954

Re: Variable inside an IF not showing correctly

If you're seeing !variable! instead of its actual value, then you're missing setlocal enabledelayedexpansion from your script. If you're seeing !variable! and its value, then you need to add @echo off to the top of your script.
by ShadowThief
20 Sep 2023 23:04
Forum: DOS Batch Forum
Topic: is there a DOS command for running a program with windows 98 compatibility?
Replies: 11
Views: 7014

Re: is there a DOS command for running a program with windows 98 compatibility?

nnnmmm wrote:
20 Sep 2023 20:59
i found this line in website set __COMPAT_LAYER=WIN98, but i dont know how to use it
That's the entire command; there's nothing else.
https://stackoverflow.com/questions/378 ... 3#37881453
by ShadowThief
20 Sep 2023 13:02
Forum: DOS Batch Forum
Topic: is there a DOS command for running a program with windows 98 compatibility?
Replies: 11
Views: 7014

Re: is there a DOS command for running a program with windows 98 compatibility?

Traditionally you right-click the application, go to Properties, go to the Compatibility tab, and pick the version you want compatibility with.

Windows 11 doesn't let you go older than Vista, so you may want to check out https://pcem-emulator.co.uk/ instead.
by ShadowThief
19 Sep 2023 20:22
Forum: DOS Batch Forum
Topic: [solved] cmd window only displays 16 colors with O/S reinstall
Replies: 5
Views: 3493

Re: cmd window only displays 16 colors with O/S reinstall

There's a registry setting you'll have to change because it's not enabled by default: https://superuser.com/a/1300251

Code: Select all

REG ADD HKCU\CONSOLE /f /v VirtualTerminalLevel /t REG_DWORD /d 1