1.

Solve : Batch Files lost?

Answer»

Hello All,
I'm new to this forum.
Been using computers for 11 yrs.
I have been very ill and lost some
memory cells  lol.
Can't make my batch file work grrr
and AlienWare formated my HD  lol

echo off
cls
cd c:\active worlds
run aworld.exe
cls
cd c:\program files\cybernet worlds
run aworld.exe


useing XP Pro
and I used to run bat files all the TIME on it
but it won't run this
the dir are correct

maybe it's just stupid windows  lol

Hugs All
Judy
You MUST quote any folder paths/filenames that contain spaces.  Hence:
echo off
cls
cd "c:\active worlds"
run aworld.exe
cls
cd "c:\program files\cybernet worlds"
run aworld.exeHello All,
All that does is take to the directory the bat file is in.grrrr
Any sugestions?
I think my file settings are off(folder control pannel, file types)

Hugs
JudyAs usual I'm a bit confused. Do you have a program called RUN that you are passing parameters to?

Code: [Select]echo off  
cls  
cd /d "c:\active worlds"  
aworld.exe  
cls  
cd /d "c:\program files\cybernet worlds"  
aworld.exe  

You really don't need the quotes or the /d switch on the CD command, but somehow it balances my sense of proportion. Hello All,
All that does is take to the dos directory the bat file is in, again grrrr
Thanks anyway

Hugs All
JudyJudy, Judy, Judy,

Try removing the echo off statement and run the batch file again. Sometimes it's easier to spot a specific error with echo on.

The program aworld.exe. Is it in both c:\active worlds and c:\program files\cybernet worlds; is it in one but not the other and which one; is it in neither?

Or do you really have a program named RUN and are passing aworld.exe as a parameter?

Sorry for the poor, but tasteful Cary Grant imitation at the beginning of the post.

Hello All,

sorry no difference

cls  
cd /d "c:\active worlds"  
aworld.exe  
cls  
cd /d "c:\program files\cybernet worlds"  
aworld.exe  


Hugs All
JudyNeed more info. You haven't given US much to go on. When you ran the file without the echo statement, what messages did you GET?

What does aworld.exe do and why is it presumably in two directories?

Is it correct that you are running this batch file from the little black box called Command Prompt, and not the Start==>Run box or the little black box called MS-DOS Prompt

 8-)

PS. MS-DOS Prompt is misleading. There is no DOS on a XP machine or any NT machine for that matter.Hello All,

aworld is a VR browser
It's the exe for all my VR universes

Hugs All
JudyRather than duel with the good people over at LockerGnome, I'll let them handle this. They're having as much trouble getting clues as we are.

 8-)
 

Hello All,
It has to be a settings problem  or maybe sp2

Hugs All
Judy Quote

Rather than duel with the good people over at LockerGnome, I'll let them handle this. They're having as much trouble getting clues as we are.

 8-)
 


Nice Catch, SIDEWINDER !


Discussion

No Comment Found