In this post, we will see how to resolve Batch File Unable To Compare Two String Variables Question: The company I work at utilizes a batch file to backup user profiles. The script originally used robocopy, but now also uses ...

Question: I am trying to delete a folder using robocopy mirroring like this: Start-Process -FilePath "robocopy.exe" -ArgumentList "$emptyDir $sourcePath /mir /e /np /ns /nc /njs /njh /nfl /ndl" -Wait -PassThru -NoNewWindow but still get a line of output for every ...

Question: I’m trying to create a robocopy program that runs every Sunday and pulls in the last 7 days of folders(and its sub-folders) .this is because the folder stores years’ worth of data so I only want to pull in ...

Question: I went through Robocopy’s documentation here. https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy Couldn’t figure it out since no examples. Is there a way to set robocopy so that it skips specific file types (e.g. PDFs)? Answer: According to the command reference /xf *.pdf should ...

Question: We’re working on moving files from one server to another. The last time we did this, we used vb Script. We move around a million files (took several days). We’re looking to speed up the process, as this looks ...