PUSHD & POPD in startup of server not working

October 26, 2010 at 07:27:45
Specs: Windows XP
@echo off

pushd \\\IPexe
cd IP

pushd \\\IPexe
cd Hardware

pushd \\\IPexe
cd Software


This is script collects inventories from users machine, with .exe setup's as ,"ipinve.exe","hardware.exe","softwareinventory.exe". I wanna map drive to users machine using PUSHD command. "IPexe is thte folder which contains all the .exe files mentioned above."I copied script into startup of server 2003.Users m/c r running XP sp3. When user machine boots up, this startup script not working, with no log in event viewer. when i try 2 execute the above script manually on users machine , it works fine, with inventory details in respective folder.

I think something wrong with above script.

Help needed.

See More: PUSHD & POPD in startup of server not working

Report •

October 26, 2010 at 08:44:58
PUSHD (and so POPD) and CD do not allow network path or UNC names..

Report •

October 26, 2010 at 22:34:58
I think PUSHD 's main purpose is to map network drive !!!

Report •

October 27, 2010 at 05:52:42
Hi Ivo, PUSH does indeed work with UNC paths too, and will map a temporary drive letter. (Type PUSHD /? for help.) I never thought I would find something I knew that you didn't ;-)

er.loyaamit, perhaps there's nothing wrong with your script, but the method you use to start it up. Just to understand it better, is \\\IPexe a directory located on the 2003 server? And the script is located on the XP machine? How do you get the script to start up when the XP machine boots up?

Report •

Related Solutions

October 27, 2010 at 07:06:50
Tnank you klint!

It is never too late to learn anything... I exchanged the behavior of CD that doesn't allow UNCs for PUSHD/POPD.

Thanks again.

Report •

October 27, 2010 at 12:38:38
My Google-Fu is weak and I can't find any supporting article, but I recall the system startup scripts run under the Local Service account. If that's true, then your scripts won't have access to any networked resource.

How To Ask Questions The Smart Way

Report •

October 28, 2010 at 02:54:39
Yes, "\\\IPexe" is directory on server , it is shared with full rights.But the script is not located on client m/c, it is startup script, in startup folder.I want 2 apply script 2 user m/c's through GPO of server 2003 to particular OU of AD.

Now I added DisableUNCcheck =1 in registry 2 disable unc check. Then also it's not working. I piped o/p 2 a a text file on client m/c, now it's "access denied.."

Really Screwed with this.

Report •

Ask Question