Well, this is a well-written query, I can't see why it shouldn't work... Just a couple of possibilities: - Are you executing the command in a batch file? If so, the cmd shell will replace %10061% with the value of the environment variables (most likely an empty string); to workaround this, I think you...