Read a file in the Netlogon share from a logon script

G

Guest

Hi all
I wouldlike tohave a logon script that reads a file
located on the NetLogon share on the Domain Controller,
just like the script.

What i want to do is mapping drives through the logon
script using the infos that are on this txt file.

So when the script runs on the client side, how can i get
the path where the script was launched ? With this path i
think i could open the txt file.

The problem is that i have several AD servers and i don't
know which one is the one where the script is launched

Thx for your help
 
O

Oli Restorick [MVP]

I think %~dp0 should resolve to the netlogon share when used in a batch file
located there, so reference your file as %~dp0myfile.txt (without a slash).

Hope this helps

Oli
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top