Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workaround for endless loop of WinCMD script #1083

Closed
wants to merge 1 commit into from

Conversation

stkevintan
Copy link

@stkevintan stkevintan commented Dec 27, 2023

I just set up the CMD auto run script in my windows machine (Windows 11 Enterprise, 23H2, x64)
I firstly encountered %i was unexpected at this time., so I changed to script the Cmder version (double the %)
after that, the cmd hangs forever, and a huge amount of cmd process emerged:
image

I got the answer from https://stackoverflow.com/a/57451662

The problem is, FOR /F starts a new instace of cmd.exe and that instance also starts your auto run script, this can result into an endless loop.

So I updated the README, hope my experience can help other peopoe

Copy link

changeset-bot bot commented Dec 27, 2023

⚠️ No Changeset found

Latest commit: 5b921ea

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@stkevintan stkevintan changed the title Add solution for possible issue of WinCMD script Add workaround for endless loop of WinCMD script Dec 27, 2023
@Schniz
Copy link
Owner

Schniz commented Mar 12, 2024

i trust you that it works, but it makes the readme very busy with wincmd stuff that I'm not entirely sure people are still using today. maybe we should add a docs/wincmd.md page? maybe we should change the wincmd initialization script?

@Schniz
Copy link
Owner

Schniz commented May 24, 2024

I believe it was addressed in a different PR. Thank you for the contribution :blob_salute:

@Schniz Schniz closed this May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants