Joe Strazzere - All Things Quality

Visit my new blog at http://strazzere.blogspot.com/


June 10, 2008 - WinTask - Getting the Path to Your Script

Posted in WinTask

 

 

Command$(0) returns the full path and file name of your script.

 

So this:

Left$(Command$(0),InstrRev(Command$(0),"\"))

will extract the path to your script from Command$(0).

 

See for yourself:

msgbox(Left$(Command$(0),InstrRev(Command$(0),"\")))



Any comments on this article?
Email Me


<- Last Page :: Next Page ->

About Me

A gathering place for information and ideas about Quality Assurance, Testing, and other useful topics.

Problems cannot be solved by the same level of thinking that created them. - A. Einstein

Search This Site

Translate This Site

RSS Feed

Subscribe

Twitter

@jstrazzere

Categories

Life
QA
Sports
Tools
WinTask
Work in General

What I'm Reading Now