Calling a batch file using relative path

407

There are different ways to do this.

If dirs are:

c:\workdir\batfile-dir\

and you are currently in \workdir\

You can do this: .\batfile-dir\foo.bat

The thing to remember is that foo.bat will be running with a "current directory" of \workdir\

HTH

Share:
407

Related videos on Youtube

user1050070
Author by

user1050070

Updated on September 17, 2022

Comments

  • user1050070
    user1050070 almost 2 years

    I have a registration form on my website and I want certain fields to be pre-filled when a user returns. for example first name, last name, job function etc but other fields to be left blank that are unique to the particular registration process.

    what options do I have to do this for example user log in, "remember me"....etc ?

    Also what are the pros and cons of these possible options(breifley)

    any help would be great

    • Nicolás Ozimica
      Nicolás Ozimica over 12 years
      Pre-filling a registration form with data from a former visitor, does imply that visitor didn't finish the registration process on his last visit?
  • Franz
    Franz over 14 years
    Oh my goodness. I used slashes instead of backslashes. Another reason to hate on Windows, possibly...? Thanks for your help, anyways. It's appreciated.