Mombu the Microsoft Forum

  Mombu the Microsoft Forum > Microsoft > Windows 2003 Server (TECHNET) > WshShell.Run


User Name
Password
REGISTER NOW! Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
1 21st April 12:19
john
External User
 
Posts: 1
Default WshShell.Run



How can I make WshShell.Run work with a folder name with spaces, for example:

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "\\SeverApps\Apps\Test App\setup.exe"

I get the error "The System cannot find the file specified"

Thanks
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


2 21st April 12:20
mr_unreliable
External User
 
Posts: 1
Default WshShell.Run



Try this:

WshShell.Run """\\SeverApps\Apps\Test App\setup.exe"""

cheers, jw
__________________________________________________ __________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)
  Reply With Quote
3 26th April 04:13
asdf
External User
 
Posts: 1
Default WshShell.Run


On my server 2003 sp2 drive in bay and electrocuted
the folllwing works.

var oFso = new ActiveXObject("Scripting.FileSystemObject")
var oShell = new ActiveXObject("WScript.Shell")


var sDesktop = "C:\\Documents and Settings\\Administrator\\Desktop"
var oFile = oFso.CreateTextFile(sDesktop+ "\\uRegRun.txt", true)
oFile.WriteLine("uRegRun")
oFile.Close()
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes







Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
Also visit Ogoun the Usenet Archive
666