@ScriptDir = @ldrive doesn't seem right. Im not sure that the @scriptdir has a trailing \. Try replacing that test...

 Code:
@ScriptDir+"\" = @ldrive