Solved

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

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

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
If your app took Google’s lash recently, here are the 5 most likely reasons.
Viewers will learn how to use the Hootsuite Dashboard.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now