To  day i have a strange  problem that make me feel crazy.

Sql Server Express Edition 2008

Right Click => Run A New Query


An error occurred while executing batch. Error message is: The directory name is invalid

Resolved: run on cmd

echo %temp%

echo %tmp%

and check if there something wrong with them.

to me:

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1 is not available

so i just create it and everything ‘d be ok 😀