Results 1 to 1 of 1

Thread: Program Files via Batch File

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2011
    Posts
    52

    Program Files via Batch File

    Hello,

    I'm trying to run a program from a batch file. Basically, the program will read the batch file and put the values in an array. The delimiter of the program in reading the batch file is " "/space(1). I know that running this command %ProgramFiles% in windows (via Run or CMD) will lead me to Program Files .

    I already tried the following:
    ----> put %ProgramFiles% on the batch file that calls my program but it is not working.
    directory.Exists(%ProgramFiles%) is false.
    ----> put Program Files on the batch file, it is treated as separate item in the array.

    Any idea how will i locate program files via batch file without space on the word "Program Files"?

    Thanks
    Last edited by hopia; Apr 1st, 2016 at 03:06 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width