Page 1 of 1 1
Topic Options
#122345 - 2004-07-08 07:25 AM working directory
oscar_goodwin Offline
Lurker

Registered: 2004-07-08
Posts: 2
how do i use the run command with a working directory?
Top
#122346 - 2004-07-08 10:40 AM Re: working directory
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Hello Oscar and Welcome to the board.

I'm not exactly sure what you mean by this question.

Can you please let us know what version of KiXtart you're using and what it is you're attempting to do. That might help us to give you a better answer.

Top
#122347 - 2004-07-08 10:58 AM Re: working directory
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
If you want to run in a particular directory, change to it first. Foe example to use C:\temp as the working directory:
Code:
GO C:
cd "\temp"
Run "MYCOMMAND"


Top
#122348 - 2004-07-09 12:03 AM Re: working directory
oscar_goodwin Offline
Lurker

Registered: 2004-07-08
Posts: 2
yeah that sounds like what a need to do, still not working tho. Im running version 4.22.

Heres what ive got. I need to map a drive and then run a exe from that mapped drive (file needs to be run with a working directory).


run "net use f: \\banjo\del"
GO F:
cd "\PRG\FOX"
run "deliver.exe"

Top
#122349 - 2004-07-09 12:27 AM Re: working directory
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
maybe something more like this will work better...

Use F: "\\banjo\del"
GO F:
CD "PRG"
CD "FOX"
Run "deliver.exe"

Or maybe...why cant you just do this?

Use F: "\\banjo\del"
Run "F:\PRG\FOX\deliver.exe"

Top
#122350 - 2004-07-09 12:54 AM Re: working directory
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Read the manual to understand the difference between RUN and SHELL. When you RUN 'NET USE...' the next line is executed before the drive is mapped!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1619 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.061 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org