So... I need a powershell script. I want to everything from a local folder into a…
Jump to turn (13)
- 1So... I need a powershell script. I want to everything from a local folder into
- 2does this script also work with subfolders and files inside them?
- 3does it also create any subfolders in the destination folder, that were not ther
- 4Rename-Item $destinationFile ($destinationFile + "1.dll") -Force I think this wi
- 5This one will create test.dll.dll1
- 6What is $file.FullName?
- 7again, not what i need. this also creates test.dll.1.dll what I need is test.dll
- 8You said: This will append 1.dll to the end of the file name, resulting in a fil
- 9$file.BaseName Does this include the full path?
- 10I'll make something work out of this, thank you :D
- 11$file.Directory.FullName what is this exactly?
- 12$file.Directory.FullName what is this? examples please! like what is this for c:
- 13Rename-Item $destinationFile ($file.Directory.FullName + "\" + $file.BaseName +
- User
So... I need a powershell script. I want to everything from a local folder into a windows fileshare folder, and overwrite everything there automatically. There are certain dll files which are in use, and cannot be overwritten. These files should be saved with .dll1 extension.
- Assistant
Sure, here's a PowerShell script that should accomplish what you're looking for:
powershell
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.