Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Trouble running .bat file


  • Please log in to reply

#1
adamt83

adamt83

    Member

  • Member
  • PipPip
  • 27 posts
hello,

i have installed a software that accompanies the Standard Handbook for Architectural Engineering that comes with the text on a floppy (published in 98; hence the floppy). I installed the program, but there is no .exe file to run the program, instead there is a .bat file. I am completely unfamiliar w/ this type of file and my windows 00 will not recognize it. I appreciate any help you can give me.

thanks!
  • 0

Advertisements


#2
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
what kind of error do you get when you run the .bat file? (a batch file is basically a text file filled with dos commands)
  • 0

#3
adamt83

adamt83

    Member

  • Topic Starter
  • Member
  • PipPip
  • 27 posts
When i try to open it (double click) i get the error that windows does not recognize this type of file and i need to select a program to run it.
  • 0

#4
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
do start > run > regedit

now under HKEY_CLASSES_ROOT find .bat...click on it...what does it say in the right hand pane? what about the persistance handler?
  • 0

#5
adamt83

adamt83

    Member

  • Topic Starter
  • Member
  • PipPip
  • 27 posts
Ok, here is what i got:

.bat:

(Default) REG_SZ batfile

persistance handler:

(Default) REG_SZ {5e941d80-bf96-11cd-b579-08002b30bfeb}

Thanks,
Adam
  • 0

#6
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
well....that looks right....

can you run the batch file from a command line?

do start > run > cmd

then navigate within the command prompt to the location of the batch...and type the file name in the command line
  • 0

#7
adamt83

adamt83

    Member

  • Topic Starter
  • Member
  • PipPip
  • 27 posts
C:\Documents and Settings\adam>Desktop\SHAE\SHAE.bat

C:\Documents and Settings\adam>c:\windows\jview.exe shae.class
'c:\windows\jview.exe' is not recognized as an internal or external command,
operable program or batch file.


the install is only 1.37 mb, could i just send it to you and see if you can get it to install/run?

Thanks
  • 0

#8
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
in the command prompt type

cd desktop
then cd shae
then shae.bat

for the exe do
cd ..
cd ..
cd windows
jview.exe
  • 0

#9
adamt83

adamt83

    Member

  • Topic Starter
  • Member
  • PipPip
  • 27 posts
ok, followed the instructions but i'm not sure what it all means....unless i did something wrong:

Microsoft Windows 2000 [Version 5.00.2195]
© Copyright 1985-2000 Microsoft Corp.

C:\Documents and Settings\adam>cd desktop

C:\Documents and Settings\adam\Desktop>cd shae

C:\Documents and Settings\adam\Desktop\SHAE>shae.bat

C:\Documents and Settings\adam\Desktop\SHAE>c:\windows\jview.exe shae.class
'c:\windows\jview.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\adam\Desktop\SHAE>cd ..

C:\Documents and Settings\adam\Desktop>cd ..

C:\Documents and Settings\adam>cd windows
The system cannot find the path specified.

C:\Documents and Settings\adam>jview.exe
Microsoft ® Command-line Loader for Java Version 5.00.3810
Copyright © Microsoft Corp 1996-2000. All rights reserved.

Usage: JView [options] <classname> [arguments]

Options:
/? displays usage text
/cp <classpath> set class path
/cp:p <path> prepend path to class path
/cp:a <path> append path to class path
/n <namespace> namespace in which to run
/p pauses before terminating if an error occurs
/v verify all classes
/d:<name>=<value> define system property
/a execute AppletViewer
/vst print verbose stack traces (requires debug classes)
/prof[:options] enable profiling (/prof:? for help)

Classname:
.CLASS file to be executed.

Arguments:
command-line arguments to be passed on to the class file

C:\Documents and Settings\adam>
  • 0

#10
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
ok i see what the batch is trying to do....

close the command prompt and open it again..

you should come up to this at the prompt

C:\Documents and Settings\adam>


type cd .. then enter

which should change the prompt to this

C:\Documents and Settings\

then do cd .. again
now the prompt should be this
c:\

now do cd windows

prompt should look like
c:\windows
now type jview.exe shae.class
  • 0

Advertisements


#11
adamt83

adamt83

    Member

  • Topic Starter
  • Member
  • PipPip
  • 27 posts
C:\WINDOWS>jview.exe shae.class

ERROR: Could not execute shae.class : The system cannot find the file specified.
  • 0

#12
adamt83

adamt83

    Member

  • Topic Starter
  • Member
  • PipPip
  • 27 posts
ok, i think i have this figured out now. i had copied the program files to the desktop; they were installed to the program files / shae folder. so, i did:

C:\WINDOWS>cd ..

C:\>cd program files

C:\Program Files>cd shae

C:\Program Files\SHAE>jview.exe shae.class

and the program opened and works. is this the only way i can open the program? any way to make it easier (ie shortcut?)

Thanks. sorry for the confusion.
  • 0

#13
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
try this file and tell me if it works...

to make it a batch file right click on it and choose rename, rename it to shae.bat ....if the icon doesn't change from notepad icon to the batch icon (the little gear)...then open up my computer then do tools then folder options > view > then uncheck the box that says hide file extensions for known file types...press apply then close all of that and try to rename it again...it will ask you if you really wanna change the extension...say yes then try the batch again
  • 0

#14
adamt83

adamt83

    Member

  • Topic Starter
  • Member
  • PipPip
  • 27 posts
i converted to a batch file no problem. i just put it on my desktop and doubleclicked:

the command window popped up and read:

C:\Documents and Settings\adam\Desktop>"C:\Program Files\SHAE\jview.exe shae.cla
ss"
'"C:\Program Files\SHAE\jview.exe shae.class"' is not recognized as an internal
or external command,
operable program or batch file.

C:\Documents and Settings\adam\Desktop>pause
Press any key to continue . . .
  • 0

#15
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
lets try this one
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP