In a batch script, you can determine the the folder path of your script by using the %~DP0 parameter.

To determine the folder path of a Vbscript, use:

sn = Wscript.ScriptName '        Script Name                                      fn = Wscript.ScriptFullName '    Fully Qualified Script Name                              fp = Replace(fn, "\" & sn, "") ' Drive / Folder path                              Wscript.Echo fp