October 19th, Top of page. How can I use a script to show me all the files in a folder? And then how can I modify that script so it shows me all the files in any subfolders of ScriptingGuy1 October 20, How do I determine the OU a user account belongs to?
Ah, yes: the OU a user belongs to. ScriptingGuy1 October 21, NET Core. Shell" WshShell. Everything except the last dot ' 2. The last dot and after that everything that is not a dot regEx. AutomatedChaos AutomatedChaos 7, 2 2 gold badges 24 24 silver badges 45 45 bronze badges. That does sound like a great idea but the script does a bit more besides the above and I'm trying to avoid a command prompt window.
I added a script to run it silently from VBScript. It does wait until the command is ready, if you want to go on with your script and do not want to wait , change the last parameter from true to false. This is not a bribe, is it? Searching for patterns is best done with regular expressions. I added the code in the second edit. This is a respons to a comment that is now deleted, it is about concerning the replacement of all periods in a filename without the last one for the extention — AutomatedChaos.
Yep it was a bare faced bribe and not part of the original question so I deleted it. It seems to have worked though so cudos to you : — Andy Gee. Sign up or log in Sign up using Google. Sign up using Facebook. You see If give set the path in the get file specification line it verifies if the file is read-only or not.
I would like to be able to pass the filename as I will be reading it from a query. I have everything working except for this part. The below script tells me that the file does not exist. GetFile LocalDrive wscript. Thursday, February 11, AM. Here is an example. As gunner mentioned the function returns a boolean value if file is read-only it returns true otherwise false.
The Tek-Tips staff will check this out and take appropriate action. Click Here to join Tek-Tips and talk with other members!
Already a Member? Join your peers on the Internet's largest technical computer professional community. It's easy to join and it's free. Register now while it's still free! Already a member? Close this window and log in.
0コメント