DOS Shell Syntax

Post Reply
User avatar
Ajay
Regular Participant
Posts: 183
Joined: Wed May 14, 2008 8:27 am
OLAP Product: TM1
Version: 10.2.0, PA 2.0.9
Excel Version: 2016
Location: London

DOS Shell Syntax

Post 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
User avatar
jim wood
Site Admin
Posts: 3951
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: DOS Shell Syntax

Post 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.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
User avatar
Ajay
Regular Participant
Posts: 183
Joined: Wed May 14, 2008 8:27 am
OLAP Product: TM1
Version: 10.2.0, PA 2.0.9
Excel Version: 2016
Location: London

Re: DOS Shell Syntax

Post by Ajay »

Thanks Jim

That did the trick.

Much appreciated.

Ajay
Post Reply