A Windows 98 & ME forum. Win98banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Win98banter forum » Windows 98 » Software & Applications
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Reading Autoexec.bat



 
 
Thread Tools Display Modes
  #11  
Old August 24th 04, 11:11 PM
Jeff Richards
external usenet poster
 
Posts: n/a
Default

Batch file 1 should work when you get the PATH statements correct as per my
previous post. Note that you can check the PATH setting at any time by
simply entering PATH and enter.

Batch file 2 is missing a space after bin for three of the lines. I suspect
in both cases you need to pass the full path to the source file - eg
'c:\PalmDev\Source\helloworld.rpc' instead of just 'helloworld.rpc'.
--
Jeff Richards
MS MVP (Windows - Shell/User)
"Dingus" wrote in message
...
Andrew,

The following are two batch files that I have tried without success.

****************************************
Batch file #1
pilrc helloworld.rcp
m68k-palmos-gcc -c HelloWorld.c
m68k-palmos-gcc -o HelloWorld
m68k-palmos-obj-res HelloWorld
build-prc HelloWorld.prc "HelloWorld" HWLD *.grc *.bin
exit

Batch file #2
c:\palmdev\pilrc pilrc helloworld.rcp
c:\PalmDev\PRC-TOOLS\H-i586-cygwin32\bin m68k-palmos-gcc -c HelloWorld.c
c:\PalmDev\PRC-TOOLS\H-i586-cygwin32\binm68k-palmos-gcc -o HelloWorld
c:\PalmDev\PRC-TOOLS\H-i586-cygwin32\binm68k-palmos-obj-res HelloWorld
c:\PalmDev\PRC-TOOLS\H-i586-cygwin32\binbuild-prc HelloWorld.prc
"HelloWorld" HWLD *.grc *.bin
exit

Result of both batch files #1 and #2
Bad command or file name
Bad command or file name
Bad command or file name
Bad command or file name
Bad command or file name

Compilation done

-----------------------RESULT-----------------------
File created C:\PalmDev\VFDIDE\HelloWorld\HelloWorld.PRC
File size 0 Bytes. (Size = 0 indicates a compilation error. Please correct
and try again)

*******************************************
This is what my autoexec.bat file looks like:

PATH
C:\;C:\Progra~1\Borland\Delphi7\Bin;C:\Progra~1\Bo rland\Delphi7\Projects\Bpl
\;C:\Windows\COMMAND
PATH
C:\PalmDev\sdk\include;C:\PalmDev;C:\PalmDev\pilrc ;C:\PalmDev\Emulator
PATH C:\PalmDev\cygwin~1\H-i586-c~1\bin;

::set MAKE_MODE=UNIX;
::set CYGNOS_HOME=c:\PalmDev\cygwin~1\H-i586-c~1;
::set PRCTOOLS_HOME=c:\PalmDev\PRC-TOOLS\H-i586-c~1;
::PATH PRCTOOLS_HOME\BIN;CYGNOS_HOME\BIN;

:: SET MakeMode=Unix
:: SET CYGHOME=c:\PalmDev\cygwin~1\H-i586-c~1
:: SET PRCHOME=c:\PalmDev\PRC-TOOLS\H-i586-c~1;
:: PATH %PRCHOME%\BIN;%CYGHOME%\BIN;

Cheers, Dingus

"Andrew H. Carter" wrote in message
...
On Tue, 24 Aug 2004 16:36:11 +1200, "Dingus"
scribbled some thoughts:

Hi,
I have installed some applications that require settings be made
in the autoexec.bat file.

I have made the necessary entries, but the autoexec.bat
file doesn't seem to be read when booting up.

ie: From a DOS prompt I should be able to invoke various
applications that have been referred to in the autoexec.bat
file - however only a message BAD COMMAND OR FILE
NAME is displayed, as if nothing exists?

Any ideas?

Dingus.



Could you post the commands/script?

NOTE: Spelling is important, as are correct paths and if
there are any spaces they need to be enclosed in quotes.

--
Sincerely, | (©) (©)
| ------ooo--(_)--ooo------
Andrew H. Carter | /// \\\
d(-_-)b |




  #12  
Old August 25th 04, 02:33 AM
Andrew H. Carter
external usenet poster
 
Posts: n/a
Default

On Wed, 25 Aug 2004 08:23:00 +1200, "Dingus" =
scribbled some thoughts:
=20
NOTE: Best viewed in a fixed pitch font=20

Andrew,

The following are two batch files that I have tried without success.


As a reminder, if the BAT, EXE, COM files are NOT loaded via=20
the path statement then you need the complete path, also since=20
DOS REQUIRES 8.3 names in the path/file(s), then you need to=20
know the correct path for such. Also there needs to be a space=20
between the command and the parameters. Multiple commands=20
(not switches"-, or /") can be on the same line if separated=20
by a pipe "|". The "pipe" should be the key above the=20
[Enter] key.


****************************************
Batch file #1
pilrc helloworld.rcp
m68k-palmos-gcc -c HelloWorld.c
m68k-palmos-gcc -o HelloWorld
m68k-palmos-obj-res HelloWorld
build-prc HelloWorld.prc "HelloWorld" HWLD *.grc *.bin
exit


::Batch file #1
:: I assume PILRC (an executable located within the folder=20
:: of the same name?) is loaded somewhere the path statements
pilrc hellow~1.rcp
m68k -palmos -gcc -c HelloW~1.c
m68k -palmos -gcc -o HelloW~1
m68k -palmos -obj -res HelloWo~1
build -prc HelloW~1.prc "HelloWorld" | HWLD *.grc *.bin
exit

In the above I assume HWLD is a command ? Not a switch?,=20
hence I've piped it.

Batch file #2
c:\palmdev\pilrc pilrc helloworld.rcp
c:\PalmDev\PRC-TOOLS\H-i586-cygwin32\bin m68k-palmos-gcc -c HelloWorld.c
c:\PalmDev\PRC-TOOLS\H-i586-cygwin32\binm68k-palmos-gcc -o HelloWorld
c:\PalmDev\PRC-TOOLS\H-i586-cygwin32\binm68k-palmos-obj-res HelloWorld
c:\PalmDev\PRC-TOOLS\H-i586-cygwin32\binbuild-prc HelloWorld.prc
"HelloWorld" HWLD *.grc *.bin
exit


::Batch file #2
c:\palmdev\pilrc pilrc helloworld.rcp
c:\PalmDev\PRC-TO~1\H-i586~1\bin\m68k -palmos-gcc -c HelloWorld.c
c:\PalmDev\PRC-TO~1\H-i586~1\bin\m68k -palmos-gcc -o HelloWorld
c:\PalmDev\PRC-TO~1\H-i586~1\bin\m68k -palmos-obj-res HelloWorld
c:\PalmDev\PRC-TO~1\H-i586~1\bin\build -prc HelloW~1.prc "HelloWorld" | =
HWLD *.grc *.bin
exit


Result of both batch files #1 and #2
Bad command or file name
Bad command or file name
Bad command or file name
Bad command or file name
Bad command or file name

Compilation done

-----------------------RESULT-----------------------
File created C:\PalmDev\VFDIDE\HelloWorld\HelloWorld.PRC
File size 0 Bytes. (Size =3D 0 indicates a compilation error. Please =

correct
and try again)

*******************************************
This is what my autoexec.bat file looks like:

PATH
C:\;C:\Progra~1\Borland\Delphi7\Bin;C:\Progra~1\B orland\Delphi7\Projects=

\Bpl
\;C:\Windows\COMMAND
PATH =

C:\PalmDev\sdk\include;C:\PalmDev;C:\PalmDev\pilrc ;C:\PalmDev\Emulator
PATH C:\PalmDev\cygwin~1\H-i586-c~1\bin;


DOH! I goofed.

PATH C:\PalmDev\cygwin~1\H-i586~1\bin;

::set MAKE_MODE=3DUNIX;
::set CYGNOS_HOME=3Dc:\PalmDev\cygwin~1\H-i586-c~1;
::set PRCTOOLS_HOME=3Dc:\PalmDev\PRC-TOOLS\H-i586-c~1;
::PATH PRCTOOLS_HOME\BIN;CYGNOS_HOME\BIN;

:: SET MakeMode=3DUnix
:: SET CYGHOME=3Dc:\PalmDev\cygwin~1\H-i586~1
:: SET PRCHOME=3Dc:\PalmDev\PRC-TOOLS\H-i586~1;


DOH! I goofed.

:: SET PRCHOME=3Dc:\PalmDev\PRC-TO~1\H-i586~1;

:: PATH %PRCHOME%\BIN;%CYGHOME%\BIN;

Cheers, Dingus


Now, you are going to have to make certain that these file paths
do indeed exist and are the proper ones. It can easily be=20
achieved by opening Windows Explorer and also a DOS Window. =20
=46or the folder path drag the folder onto the DOS window and it=20
will appear in the 8.3 naming scheme. Repeat for the files.

--=20
Sincerely, | (=A9) (=A9)
| ------ooo--(_)--ooo------
Andrew H. Carter | /// \\\
d(-_-)b |
  #13  
Old August 25th 04, 08:35 PM
Dingus
external usenet poster
 
Posts: n/a
Default

Thanks everyone.

"Dingus" wrote in message
...
Hi,
I have installed some applications that require settings be made
in the autoexec.bat file.

I have made the necessary entries, but the autoexec.bat
file doesn't seem to be read when booting up.

ie: From a DOS prompt I should be able to invoke various
applications that have been referred to in the autoexec.bat
file - however only a message BAD COMMAND OR FILE
NAME is displayed, as if nothing exists?

Any ideas?

Dingus.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dr seuss reading games laura justen General 1 August 18th 04 10:39 PM
Autoexec.bat Sandrobi General 2 August 17th 04 07:29 PM
Major errors in config.sys & Autoexec.bat Kim Setup & Installation 4 August 2nd 04 02:23 AM
Scandisk data error while reading cluster 419202 N Dias Disk Drives 1 July 8th 04 03:52 PM
I'm unable to access the Yes No boxes after reading the user agreement for Win M [email protected] Setup & Installation 1 June 1st 04 09:51 PM


All times are GMT +1. The time now is 10:19 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.