Re: Getting path...
- From: "Torgeir Bakken \(MVP\)" <Torgeir.Bakken-spam@xxxxxxxxx>
- Date: Thu, 19 May 2005 16:59:18 +0200
Vince <vincent@ wrote:
hi there!
is there a way to get the absolute path of a running wsh script ?
WScript.Echo WScript.ScriptFullName Set oFSO = CreateObject("Scripting.FileSystemObject") sScriptPath = oFSO.GetParentFolderName(WScript.ScriptFullName) WScript.Echo sScriptPath
another question, is it possible to develop graphical interfaces using wsh or we have to migrate to VB?
You could use an Internet Explorer object for the GUI, or switch to HTA:
http://groups.google.co.uk/group/microsoft.public.scripting.wsh/msg/aaf39e1e72537063?dmode=source&hl=en
-- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx .
- Follow-Ups:
- Re: Getting path...
- From: McKirahan
- Re: Getting path...
- References:
- Getting path...
- From: Vince
- Getting path...
- Prev by Date: Getting path...
- Next by Date: Re: Getting path...
- Previous by thread: Getting path...
- Next by thread: Re: Getting path...
- Index(es):
Relevant Pages
|
Loading