Nov 12, 2003 #1 nerram Programmer Apr 23, 2003 56 IE How do I find the location to a script? EG My Script is stored at c:\Projects\Scripts\MyScript.vbs I want the script to output its location ie c:\Projects\Scripts\MyScript.vbs But if it was stored at d:\MyScript.vbs it should output d:\MyScript.vbs
How do I find the location to a script? EG My Script is stored at c:\Projects\Scripts\MyScript.vbs I want the script to output its location ie c:\Projects\Scripts\MyScript.vbs But if it was stored at d:\MyScript.vbs it should output d:\MyScript.vbs
Nov 12, 2003 #2 tsuji Technical User Jul 25, 2001 10,675 US Hello nerram, Code: wscript.echo wscript.scriptfullname wscript.echo wscript.scriptname wscript.echo createobject("wscript.shell").currentdirectory regards - tsuji Upvote 0 Downvote
Hello nerram, Code: wscript.echo wscript.scriptfullname wscript.echo wscript.scriptname wscript.echo createobject("wscript.shell").currentdirectory regards - tsuji