Underused features of Windows batch files

StackOverflow have another interesting topic about: Underused features of Windows batch files. Of course there are many things I didn’t know about. Some highlights: PUSHD path Takes you to the directory specified by path. POPD Takes you back to the directory you “pushed” from. By using CALL, EXIT /B, SETLOCAL & ENDLOCAL you can implement […]

xcopy problem – Invalid drive specification – 0 File(s) copied

Recently I started getting the following errors from one of my batch files. Invalid drive specification 0 File(s) copied The problem was, that I didn’t have specified drive at all, because I was using UNC path (\\ComputerName\SharedFolder\Resource). So, xcopy is reporting with the wrong error message. One possibility is, that it is possible to disable […]