I have a large script that will be asking for a download directory and downloading a bunch of files into it. However, when I set the download filename string based on the directory string, they are both overwritten with the full filename string. Here's what I mean:
$dldir = 'c:\downloads' $dlfile = $dldir += '\data.csv'
This results in both $dldir and $dlfile to be set to "c:\downloads\data.csv". Obviously, since I want to reuse $dldir to set $dlfile multiple times in the script, I don't want it to change. Does anyone know how to do this?