Page 1 of 1

DOS Shell Syntax

Posted: Wed Jun 25, 2008 1:36 pm
by Ajay
Hi All,

I am having a DOS Shell issue which some of you may be able to help with.

When writing the code and referencing another server within the code, can you simply use the drive letter you have mapped to or do you need the full UNC path within the script ? For example:

dir d:
or
dir \\otherserver\c$

where d is the drive letter mapping the other server to the one the script is running on.

Thanks
Ajay

Re: DOS Shell Syntax

Posted: Wed Jun 25, 2008 1:55 pm
by jim wood
I would suggest you use the UNC path. Purely because it works in DOS and we know that TM1 supports it. Add to that the fact that somebody can easily remove or reuse the drive letter it sound like the safer option,

Jim.

PS. Are you sure you want to use DIR and not CD. I'm not sure CD works UNC paths.

Re: DOS Shell Syntax

Posted: Thu Jun 26, 2008 9:31 am
by Ajay
Thanks Jim

That did the trick.

Much appreciated.

Ajay