Skip to content

Conversation

iridacea
Copy link
Contributor

  • The page(s) are in the correct platform directories: common, linux, osx, windows, sunos, android, etc.
  • The page description(s) have links to documentation or a homepage.
  • The page(s) follow the content guidelines.
  • The page(s) follow the style guide.
  • The PR contains at most 5 new pages.
  • The PR title conforms to the recommended templates.

This partially reverts 905f5f4. The part about sc was messed up a little bit. This command has all these subcommands (start, stop, create, delete) and many others, in fact. And there's no need to use the .exe file extension in the command name.

@github-actions github-actions bot added page edit Changes to an existing page(s). review needed Prioritized PRs marked for reviews from maintainers. labels Oct 13, 2025
@Managor
Copy link
Member

Managor commented Oct 13, 2025

I tested this on a spare laptop. It seems that sc and sc.exe are two different commands. I'm not a windows user so I don't really know the difference

@iridacea
Copy link
Contributor Author

I tested this on a spare laptop. It seems that sc and sc.exe are two different commands. I'm not a windows user so I don't really know the difference

What made you think they're different?

What Windows version did you try?

@Managor
Copy link
Member

Managor commented Oct 13, 2025

Windows 10. I ran sc and sc.exe by themselves and they produced different output

@iridacea
Copy link
Contributor Author

iridacea commented Oct 13, 2025

Windows 10. I ran sc and sc.exe by themselves and they produced different output

Do you run it in powershell or cmd session?

Can you post the output of the following (in cmd)?

where sc
where sc.exe

@Managor
Copy link
Member

Managor commented Oct 13, 2025

This seems to be a powershell thing. In cmd the commands are the same.

I'll leave this up to people who know more about windows to decide.

@iridacea
Copy link
Contributor Author

OK, I figured it out. There's an utility sc.exe which manages windows services (doc-sc) and there's an alias to the Set-Content cmdlet in Powershell (doc-5.1). At least it exists in Powershell 5.1, cannot check the newer versions of Powershell. Documentation for the newer version doesn't mention this alias (doc-7.5).

PS C:\Users\user> alias sc                                                         
                                                                                    
CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           sc -> Set-Content                                                   

PS C:\Users\user> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      14409  1018

@iridacea
Copy link
Contributor Author

It looks like this powershell alias has been removed in recent versions: https://github.com/iridacea/test-win/actions/runs/18480749589/job/52654780128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

page edit Changes to an existing page(s). review needed Prioritized PRs marked for reviews from maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants