-
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support disabling per-user services in Windows #16
Some services in Windows have random characters appended to them. This commit fixes the scripts that has been trying to disable them but failing in newer Windows versions where they become per-user.
- Loading branch information
1 parent
1cc1d8e
commit 86c129b
Showing
2 changed files
with
78 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import { ILanguageSyntax } from '@/domain/ScriptCode'; | ||
|
||
|
||
const BatchFileCommonCodeParts = [ '(', ')', 'else' ]; | ||
const PowerShellCommonCodeParts = [ '{', '}' ]; | ||
|
||
export class BatchFileSyntax implements ILanguageSyntax { | ||
public readonly commentDelimiters = [ 'REM', '::' ]; | ||
public readonly commonCodeParts = [ '(', ')', 'else' ]; | ||
public readonly commonCodeParts = [ ...BatchFileCommonCodeParts, ...PowerShellCommonCodeParts ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters