- batch file and UNC paths
- Posted by conrad on February 10th, 2008
How does one alternatively get around
the problem of using UNC paths? I have
a batch file in a shared directory
with a file in the same directory. When
the share is accessed, it is unable to read
the file. It seems that problem is due to
the fact that it is a UNC path. What
is a way around this while keeping my
batch file and file it reads in the same
shared directory. I also mapped the drive.
But that didn't work either.
Additionally, are there any standard command
line tools for making modifications to a user's
outlook profile? Such as creating, deleting or
recreating shortcuts, etc?
--
conrad
- Posted by Pegasus \(MVP\) on February 10th, 2008
See below.
"conrad" <conrad@lawyer.com> wrote in message
news:f3bf9ad0-17d0-48a5-ae8a-d6e28225b4f0@c23g2000hsa.googlegroups.com...
*** What problem?
*** Let's have a look at the batch file!
*** How exactly to you access the share?
*** What message do you get when you try to read the file?
*** Can you access the file when you use a Drive:Folder path?
*** If this does not work either, what makes you think
*** that the problem is caused by the UNC path?
*** What exactly to you mean with "creating a
*** shortcut in Outlook"?
- Posted by conrad on February 11th, 2008
On Feb 10, 2:36*pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
The relevant part is:
set fl=%CD%\user.txt
if exist %fl% (
for /F "eol= " %%u in (%fl%) do echo %%u:%pwd%
) else (
@echo Unable to locate %fl%
@echo Exiting...
)
Where the echo is currently I'll be using usermod
to modify active directory objects.
There are components in outlook that reference
mail, calendar, etc.And they allow quick access to
one of those components. You also have an
option to create a shortcut to say subfolders
for quick access to subfolders, say a particular
directory for some filtered email. I was just curious
if there was some command line tool that would
allow modification of a user's outlook profile
to change such settings instead of having to
walk a user, over the phone, in creating such
shortcuts.
--
conrad
- Posted by Pegasus \(MVP\) on February 11th, 2008
"conrad" <conrad@lawyer.com> wrote in message
news:070e876c-aade-481d-94f1-839e7672da9e@i12g2000prf.googlegroups.com...
On Feb 10, 2:36 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
The relevant part is:
set fl=%CD%\user.txt
if exist %fl% (
for /F "eol= " %%u in (%fl%) do echo %%u:%pwd%
) else (
@echo Unable to locate %fl%
@echo Exiting...
)
Where the echo is currently I'll be using usermod
to modify active directory objects.
There are components in outlook that reference
mail, calendar, etc.And they allow quick access to
one of those components. You also have an
option to create a shortcut to say subfolders
for quick access to subfolders, say a particular
directory for some filtered email. I was just curious
if there was some command line tool that would
allow modification of a user's outlook profile
to change such settings instead of having to
walk a user, over the phone, in creating such
shortcuts.
--
conrad
====================
Your original question was about shares and UNC paths.
Your reply makes no reference to UNC paths, hence I am
unable to comment on it.
Your batch file lines
set fl=%CD%\user.txt
if exist %fl% (
may or may not work, depending on your current working
directory. It would be much safer to code like so:
set fl=%CD%\user.txt
if exist "%fl%" (
I also wonder just how robust your code is when using the
%CD% environmental variable. Do you really know at
all times where the user is? If you do, why not hard-code
it into the batch file?
I am not aware of any command line facilities that let
you modify components in Outlook. However, instead
of "walking" to each machine when assisting a user, you
should consider using some remote support tool such as
Remote Assistance or WinVNC.