User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Windows NT / 2000 / XP / 2003 section within the Tech Talk category of DaniWeb, a massive community of 402,049 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,554 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Windows NT / 2000 / XP / 2003 advertiser: Programming Forums
Views: 170 | Replies: 1 | Solved
Reply
Join Date: Feb 2008
Posts: 40
Reputation: vedmack is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
vedmack vedmack is offline Offline
Light Poster

What is th e equal of "Start In" of a shortcut in Batch file?

  #1  
Jul 6th, 2008
Hi i got an executable file which uses an .ini file, while they both are in the same directory all works fine.
The problem is that i must separate them and make a batch file that will call the executable and also will direct the executable where to find its .ini file,

I know that when a shortcut is made , one can set the "Start In" which will direct the executable where to search for its needed files, but how can i define this "Start In" inside a batch file?

I did try setting PATH inside the batch file, but it doesn't worked out....


Any suggestion?


Thanks ahead!


Daniel.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2008
Posts: 40
Reputation: vedmack is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
vedmack vedmack is offline Offline
Light Poster

Re: What is th e equal of "Start In" of a shortcut in Batch file?

  #2  
Jul 6th, 2008
start "title" /D "path" "executable name"

That is the trick!!!!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Windows NT / 2000 / XP / 2003 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Windows NT / 2000 / XP / 2003 Forum

All times are GMT -4. The time now is 11:43 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC