Saved Bookmarks
| 1. |
Solve : batch file error in .ini file path, not starting .exe? |
|
Answer» HELLO, I am trying to use a batch file to read a PATH in an ini file and start an 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, If no tokens or delims are specified by default in an options string, FOR /F splits each data line into tokens, the default delimiters are spaces and tabs so in your example %%a is going to expand to "\\link\share\PSO This is not what you want. If you put echo %Mypath% you will see what I mean. Try with a "delims=" options string in the FOR command type FOR /? at the prompt to see the documentation |
|