Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Get program files directory.

Keywords:     Get program files directory RegQueryValue

Question:

I need a way to locate the program files directory with in a winbatch script.

Answer:

You can use the ShortcutDir function in WinBatch to retrieve that information. Here is a sample script.
  progdir=ShortCutDir("Programs")
  Message("Program directory is located:",progdir)


Article ID:   W13160
Filename:   Get Program Files Directory.txt