Re: Getting path...
- From: "McKirahan" <News@xxxxxxxxxxxxx>
- Date: Thu, 19 May 2005 10:25:46 -0500
"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@xxxxxxxxx> wrote in message
news:eK$GAQIXFHA.3996@xxxxxxxxxxxxxxxxxxxxxxx
> 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/aaf39e1e
72537063?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
Or:
Dim sPath
sPath = WScript.ScriptFullName
sPath = Left(sPath,InStrRev(sPath,"\"))
WScript.Echo sPath
.
- Follow-Ups:
- Re: Getting path...
- From: Al Dunbar [MS-MVP]
- Re: Getting path...
- References:
- Getting path...
- From: Vince
- Re: Getting path...
- From: Torgeir Bakken \(MVP\)
- Getting path...
- Prev by Date: Re: Getting path...
- Next by Date: Re: splitting a big file int several smaller ones...
- Previous by thread: Re: Getting path...
- Next by thread: Re: Getting path...
- Index(es):
Relevant Pages
|
Loading