WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 2001:01:15:10:39:26
Last Updated: 2001:01:15:10:39:26