Solved

How to use a desktop short cut Target path to include a .ini file

Posted on 2016-09-29
4
67 Views
Last Modified: 2016-10-04
Hello Experts,

I am creating a bat file to push out to customers. This file will create two icons on their desktop. One will take them to a Test environment and the other a Production environment. The Test and Production executable will use different .ini files when executed. What is the correct syntax for this?

I tried:     exe /f c:\InformationDesignTool.ini           without luck.
Error: "The informationDesignTool executable launcher was unable to locate its companion shared library"
OS: is Windows 7

I did locate information on SAP's site that this is due to a long file path name. I changed it to c:\  and still received the error.
0
Comment
Question by:Member_2_7964761
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
telczj9 earned 250 total points
ID: 41821863
On the command prompt window do:

dir /x c:\InformationDesignTool.ini

The /x flag will surface the 8.3 naming format of your long file name.

Use that short name in the script.
0
 
LVL 24

Assisted Solution

by:NVIT
NVIT earned 250 total points
ID: 41821949
You may also try wrapping it im quotes. E.g

/exe /f "c:\InformationDesignTool.ini"
0
 
LVL 3

Expert Comment

by:telczj9
ID: 41823849
Is it working now?
0
 

Author Closing Comment

by:Member_2_7964761
ID: 41827991
Thanks for your help!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question