Installing BGInfo.exe onto Windows XP problem

Posted on 2008-06-19
Last Modified: 2012-06-22
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:

MD "c:\program files\bginfo"
      ;IF EXIST("c:\program files\bginfo\shh.bgi")
      ;del shh.bgi
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?
Question by:bstillion
  • 4
  • 3
LVL 17

Expert Comment

by:Jared Luker
ID: 21826584
Do the users group for the workstation have change rights to the folders that you are trying to work with?
LVL 17

Accepted Solution

Jared Luker earned 250 total points
ID: 21826642
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.

Author Comment

ID: 21827272
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.

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.


Author Comment

ID: 21834915
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.


Author Comment

ID: 21850630
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
I'll update you then.


Author Comment

ID: 21864528
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.
LVL 17

Expert Comment

by:Jared Luker
ID: 21866034
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.

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access Control Entries lost in Windows folders 3 53
Error login w2012 domain 6 82
Recursively Delete Files 5 80
Creating An Intelligent Dropdown, Part Deux! 9 26
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  ( Here (http…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question