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

questions about ScanUnsupportedChars.ps1(Is it able to stop the script execution in the middle; Can the script be ran multiple times using a batch file) #151

Open
v-zhanyeshi opened this issue Jul 11, 2023 · 0 comments

Comments

@v-zhanyeshi
Copy link

v-zhanyeshi commented Jul 11, 2023

My customer wants to use below script to checking whether there is any unsupported characters in the file name.
https://github.com/Azure-Samples/azure-files-samples/blob/master/ScanUnsupportedChars/ScanUnsupportedChars.ps1

He has below questions. I did some labs, found that seems it is not possible to stop the script execution process in the middle by either pressing Ctrl+Z, Pause Bread key, ESC key and so on. Could you give any guidance please ? Thank you.

1, How to stop ScanUnsupportedChars in the middle of the execution process and what are the concerns when stopping it?
2, Is it possible to run ScanUnsupportedChars multiple times using a batch file?
3, In the DESCRIPTION of ScanUnsupportedChars.ps1, it says ' a file name is supported but this script might say its not supported', will this cause the supported file name be renamed to a different name ? What is the impact if the supported file name is recognized as un-supportted file name ?
Or are there any examples or documents about what kind of supported file name might be recognized as unsupported file names ?


Note - this script might report false positive i.e. a file name is supported but this script might say its not supported.
This is by design to keep the script simple and allow customer to rename such files proactively.


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

No branches or pull requests

1 participant