Wednesday, December 17, 2008

[THIN] Re: OT: Scripting Error

 

I had something similar when I setup a new environment.  It was being caused by the mandatory profile.  I change the mandatory profile to a .dat and then ran the script then changed it back to a .man and it was never a problem again.

 

Chris


From: thin-bounce@freelists.org [mailto:thin-bounce@freelists.org] On Behalf Of Jeremy Saunders
Sent: December 17, 2008 1:24 AM
To: thin@freelists.org
Subject: [THIN] OT: Scripting Error

 

Ok guys and girls…slightly off topic, but something I’ve noticed with my cmd scripts when running from a UNC path…

 

Start the script off with SetLocal

 

End the script with EndLocal

 

After the EndLocal, the script returns the message “The filename, directory name, or volume label syntax is incorrect.”

 

If run from a local drive or a mapped drive, it runs without error.

 

----------------start of script------------

Setlocal

 

Echo This is a test

 

EndLocal

 

Pause

------------end of script---------------

 

The DisableUNCCheck registry value has been implemented, but does not seem to make a difference in relation to the issue.

 

It’s not a pressing issue, but it’s one of those things that’s doing my head in, as I cannot find anything on the web suggesting that what I am doing is wrong.

 

Has anyone else come across this?

 

Cheers.

 

Kind regards,

Jeremy Saunders

 

Senior Solution Architect - Virtualisation Specialist |  Datacom Systems WA  |  29 Oxford Close, West Leederville, WA 6007 Australia

Email: jeremy.saunders@datacom.com.au  |  Ph: +61-8-9210-0806  | Mob: +61-413-441-846  |  Fax: +61-8-9380-4226

Personal Blog: http://www.jhouseconsulting.com/index.php

 


Confidentiality and Privilege Notice
This document is intended solely for the named addressee.  The information contained in the pages is confidential and contains legally privileged information. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone, and you should destroy this message and kindly notify the sender by reply email. Confidentiality and legal privilege are not waived or lost by reason of mistaken delivery to you.



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

No comments: