Batch file error, ini file path not reading .exe [Closed]

Report
Posts
1
Registration date
Monday February 11, 2013
Status
Member
Last seen
February 11, 2013
-
Hello,

I am trying to use a batch file to read a path in an ini file and start the application. I am able to get dos to read the path until the myapplication1.00.exe. Below is what I have.

Batch File:
@echo off
for /f %%a in (myapplication.ini) do set Mypath=%%a
start %Mypath%


myapplication.ini File:
"\\link\share\PSO Train\My Training Folder\myapplication1.00.exe"

This is a shared directory and I trying to make the .bat capable to work if a shortcut is created.

Thanks,

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!