I am using a powershell script which imports a csv file to copy directories.
Since the folders which I need to copy contain spaces I use double quotes in the csv file.
Although I don't get the right syntax when I use import-csv
Either there are too many quotes in the source and/or destination folder or too few quotes.
the robocopy command should work fine if there are quotes at the beginning and the end of each folder.
So I started with the following syntax in my csv file:
---------
source;destination
"source folder";"destination folder"
---------
If I run the import-csv command with the content listed above it only shows double quotes at the destination folder.
so I started adding additonal double quotes around the source folder, it seems toe be an easy thing, but I didn't find the correct amount of double quotes to get the source and destination folder both starting and ending with double quotes.
any suggestion how to fix this ?


