Solved

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

Posted on 2016-09-29
4
59 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Let’s list some of the technologies that enable smooth teleworking. 
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

770 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