?
Solved

Wscript for Windows XP

Posted on 2014-01-22
4
Medium Priority
?
254 Views
Last Modified: 2014-06-23
The following script works fine on my Windows 7 computer.

I works fine on one of my XP computers but NOT on another.
script follows

public objShell
objShell = create_object("WScript.Shell")
if objShell = 0
     message "Object did not open"
end if
objShell.Run("C:\Windows\explorer.exe ::{2227A280-3AEA-1069-A2DE-08002B30309D}")

Any help greatly appreciated.
0
Comment
Question by:DaleWeber
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
ZabagaR earned 1000 total points
ID: 39800511
Weird. I use a similar .vbs script to pop up the printers box on PCs....it has no problems.

set shell = createobject("wscript.shell")
myprinters = "::{2227A280-3AEA-1069-A2DE-08002B30309D}"
shell.run myprinters


You could replace "shell.run myprinters" with:
shell.run "explorer.exe /e,/root," & myprinters
0
 

Author Comment

by:DaleWeber
ID: 39800553
I wonder if the problem lies in a Windows Update.  The computer in my office that runs the script is old, hasn't been turned on since September, so it has missed updates.

Dale
0
 
LVL 82

Expert Comment

by:David Johnson, CD, MVP
ID: 39801864
Windows XP does not support the boot from vhd (dual boot).  Windows XP uses a different booting process than windows 7
0
 

Author Closing Comment

by:DaleWeber
ID: 40152266
None of the comments address the issue.  The code fails at create_object("wscript.shell").  This indicates to me that files associated with "wscript.shell" are missing or corrupt.  I prefer not to scrub the machine and start over.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

777 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