Search found 190 matches

by Simon Sheppard
2022-Nov-09, 9:22 pm
Forum: Windows PowerShell
Topic: Unix-like ampersand operator available since pwsh7
Replies: 1
Views: 11208

Re: Unix-like ampersand operator available since pwsh7

I updated the page to include that syntax now, thanks
by Simon Sheppard
2022-Nov-08, 9:41 pm
Forum: Windows CMD Shell
Topic: How to fix problems when running scripts as administrator
Replies: 2
Views: 2680

Re: How to fix problems when running scripts as administrator

I have added a note about this to the elevation page, thanks all.
by Simon Sheppard
2022-Nov-02, 9:10 pm
Forum: Windows CMD Shell
Topic: FTYPE reports wrong executable file
Replies: 6
Views: 3618

Re: FTYPE reports wrong executable file

Is the behaviour the same after a reboot? Sometimes a restart will reset things.

On the MPC website they have:
July 16, 2017 XhmikosR
v1.7.13, the latest, and probably the last release of our project…


So it is possible that whatever method they use to set file associations is out of date.
by Simon Sheppard
2022-Nov-01, 8:57 pm
Forum: Windows CMD Shell
Topic: FTYPE reports wrong executable file
Replies: 6
Views: 3618

Re: FTYPE reports wrong executable file

Interesting, but that doesn't explain what's going on in my case. FTYPE is supposed to tell you what executable file a particular type of file will be opened with. I have AVI files associated with Media Player Classic - Home Cinema. So why does FTYPE think they're opened with Windows Media Player? ...
by Simon Sheppard
2022-Oct-31, 6:25 pm
Forum: Windows CMD Shell
Topic: FTYPE reports wrong executable file
Replies: 6
Views: 3618

Re: FTYPE reports wrong executable file

I have updated the FTYPE page with some additional details about this, to make changes now requires applying a hash algorithm so generally has to be applied via group policy.
by Simon Sheppard
2022-Oct-21, 5:24 pm
Forum: Windows CMD Shell
Topic: Xcopy bug
Replies: 3
Views: 2733

Re: Xcopy bug

I don't know why it behaves differently for a compressed folder, but I have changed the example on that page to use the syntax which works everywhere.

https://ss64.com/nt/xcopy.html
by Simon Sheppard
2022-Oct-20, 10:01 pm
Forum: Windows CMD Shell
Topic: Xcopy bug
Replies: 3
Views: 2733

Re: Xcopy bug

I don't think this is a bug, XCOPY just thinks you are trying to copy a file called C:\demo with no file extension. To tell it this is a directory, you need to add a trailing backslash. When using Robocopy there is no need for a trailing space because robocopy is centered around copying a whole dire...
by Simon Sheppard
2022-Oct-13, 6:12 pm
Forum: Windows CMD Shell
Topic: Execution depends on what comes AFTER the line in question????????
Replies: 4
Views: 3002

Re: Execution depends on what comes AFTER the line in question????????

I think the problem here is that your filename includes a close parenthesis ')'

Unless enclosed in quotes, the CMD shell is not clever enough to realise that is part of the filename and instead acts like you are closing the parenthesis opened a couple of lines above.
by Simon Sheppard
2022-Sep-17, 8:27 am
Forum: Windows CMD Shell
Topic: FOR parameters
Replies: 4
Views: 3445

Re: FOR parameters

If you are testing the snippet at the command line, you will need to change the %%f to just %f