Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 786
  • Last Modified:

Installing BGInfo.exe onto Windows XP problem

The following KIXTART script works on the majority of our Windows 2000/XP PCs but occasionally fails.
Some XP installations create the folder but don't copy the files. Other XP installs don't even create the folder. I have stepped through this using the /d switch but get no errors. It acts like a permission problem but then it should never work if that is the case.
Domain users do not have local administrator (or power user) credentials here.
Also, on the XP installs that don't even create the folder, it doesn't work for me when logged in as an Enterprise Administrator in a Windows 2000 AD. We have installed XP sp3 but most of the PCs with the problem are at sp2:

C:
MD "c:\program files\bginfo"
      ;IF EXIST("c:\program files\bginfo\shh.bgi")
      ;del shh.bgi
      ;ENDIF
copy "\\oak\installs\applications\bginfo\*.*" "c:\program files\bginfo"
cd "c:\program files\bginfo"
SHELL '%COMSPEC% /C "bginfo.exe shh.bgi /TIMER:0 /NOLICPROMPT"'

Anyone see this problem before or have any thoughts?
0
bstillion
Asked:
bstillion
  • 4
  • 3
1 Solution
 
Jared LukerCommented:
Do the users group for the workstation have change rights to the folders that you are trying to work with?
0
 
Jared LukerCommented:
Also, that's a pretty basic script.  All of those things can be done via batch scripting.

Try redoing the script in batch and see if you have the same problems.
0
 
bstillionAuthor Commented:
jared luker:
The users group does not have change rights to the folders I am working with.
I have tried syntax to change the rights but with no luck.

I will make this a .bat file and try again on your advice.
It will be tomorrow before I can try but I will let you know.

Thanks.
bstillion
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
bstillionAuthor Commented:
jared luker:
The batch script created the folder and copied the files.
It did not execute the bginfo.exe so I will research my batch syntax and eliminate that as a possible reason.

bstillion
0
 
bstillionAuthor Commented:
jared luker:
I'm getting pulled away from this due to production problems
in other areas/departments.
I don't know when I can get back to this but hopefully, I can resume
tomorrow.
I'll update you then.

Bstillion
0
 
bstillionAuthor Commented:
The following line will not execute on the test PC:

SHELL '%COMSPEC% /C "bginfo.exe shh.bgi /TIMER:0 /NOLICPROMPT"'

It works on most others but I think there is a problem with this installation of Windows XP.
I would guess that approximately 10% of the PCs on this network are having this problem.
I'll close this question as it appears that it has been answered. The problem seems to be
something other than syntax.

Thanks for the help.
bstillion
0
 
Jared LukerCommented:
From a command prompt type

echo %comspec%

If you don't get a path to cmd.exe echoed out, then that could be your problem.  In the same light, you could put in the full path to cmd.exe instead of using the variable as a test.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now