If that's the entire code, then you're missing the final )
You've also written cdm /k instead of cmd /k (although I don't see why you'd need that at all since it only spawns a child terminal process), but that throws a different error.
Search found 1158 matches
- 22 Mar 2024 22:54
- Forum: DOS Batch Forum
- Topic: if/elseif dont work like expected...Sorry, this time in English
- Replies: 3
- Views: 161
- 30 Jan 2024 13:41
- Forum: DOS Batch Forum
- Topic: SYSTEM account console 254 characters limit
- Replies: 4
- Views: 7026
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...
- 17 Jan 2024 13:26
- Forum: DOS Batch Forum
- Topic: Batch Parser
- Replies: 2
- Views: 2286
Re: Batch Parser
There's excellent documentation at https://stackoverflow.com/questions/409 ... se-scripts but I'm not aware of anything interactive.
- 07 Jan 2024 11:34
- Forum: DOS Batch Forum
- Topic: Is it worth learning Powershell?
- Replies: 10
- Views: 31642
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...
- 18 Nov 2023 19:25
- Forum: DOS Batch Forum
- Topic: The timeout command blocks the W key from closing CMD window
- Replies: 3
- Views: 15073
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...
- 09 Nov 2023 15:32
- Forum: DOS Batch Forum
- Topic: Batch File To Create Folder With Current Date
- Replies: 14
- Views: 30543
Re: Batch File To Create Folder With Current Date
Code: Select all
set "YourLocation=%~dp0"
- 05 Nov 2023 22:22
- Forum: DOS Batch Forum
- Topic: Problems working a script
- Replies: 6
- Views: 20037
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...
- 05 Nov 2023 18:21
- Forum: DOS Batch Forum
- Topic: Problems working a script
- Replies: 6
- Views: 20037
Re: Problems working a script
https://pastebin.com/Lh3gEWhL if you want answers rather than general guidance
- 05 Nov 2023 18:11
- Forum: DOS Batch Forum
- Topic: Problems working a script
- Replies: 6
- Views: 20037
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...
- 03 Nov 2023 10:14
- Forum: DOS Batch Forum
- Topic: Is it worth learning Powershell?
- Replies: 10
- Views: 31642
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. ...
- 22 Oct 2023 09:30
- Forum: DOS Batch Forum
- Topic: Move flashing prompt sign away from left edge of PowerShell window
- Replies: 7
- Views: 17025
Re: Move flashing prompt sign away from left edge of PowerShell window
Are you just looking for prompt $S$S$P$G?
- 13 Oct 2023 03:31
- Forum: DOS Batch Forum
- Topic: variables as paths to run?
- Replies: 2
- Views: 12219
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:\...
- 09 Oct 2023 22:44
- Forum: DOS Batch Forum
- Topic: Variable inside an IF not showing correctly
- Replies: 18
- Views: 100765
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.
- 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: 7867
Re: is there a DOS command for running a program with windows 98 compatibility?
That's the entire command; there's nothing else.
https://stackoverflow.com/questions/378 ... 3#37881453
- 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: 7867
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.
Windows 11 doesn't let you go older than Vista, so you may want to check out https://pcem-emulator.co.uk/ instead.