+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member Rhino302's Avatar
    Join Date
    Jun 2001
    Posts
    418

    I need help with my autoexec file

    I changed it since I got my java compiler installed again. I first changed the path to where my java compiler is located. I also changed the classpath to say set classpath=. Because it was showing set classpath=c:\program files\adobe\etc and that wont let you run programs. Well it works fine, but as soon as I go into dos, it says bad command. And it always erases the line that says "set classpath=". I changed it back to the adobe directory it was on and I still get a bad command. Here's my whole file. Maybe I missed something:


    SET windir=C:\WINDOWS
    SET winbootdir=C:\WINDOWS
    SET COMSPEC=C:\WINDOWS\COMMAND.COM
    SET PATH=C:\jdk1.2.2\bin
    SET PROMPT=$p$g
    SET TEMP=C:\WINDOWS\TEMP
    SET TMP=C:\WINDOWS\TEMP


    what in that would cause a bad command?


  2. #2
    Senior Member
    Join Date
    Oct 2000
    Posts
    697
    Bad command means dos doesn't recognize the command you supply. Set is a valid command so it can't cause that.
    It says bad command even thou you don't do anything? Could you supply the full autoexec.bat instead of the environmental values only?
    -M

  3. #3
    Member Rhino302's Avatar
    Join Date
    Jun 2001
    Posts
    418
    That is the full file. I'm running Windows ME if that makes any difference. Maybe it doesnt have anything to do with this file...but what else would affect it?

  4. #4
    Banned qball's Avatar
    Join Date
    Oct 1999
    Location
    Rockaway, NJ 07866
    Posts
    1,730
    I don't think autoexec.bat problem.

    When you say:

    I go into dos
    I'll assume that means DOS box, not boot to DOS. Anyway, check the properties on command.com, Program tab. See if you are running something every time you start a DOS box. Heck check all tabs whilst you are at it...

    BTW, in DOS box type 'path', hit enter. Are all of your environment vars set as in autoexec?

  5. #5
    Member Rhino302's Avatar
    Join Date
    Jun 2001
    Posts
    418
    Yeah I dont boot into DOS to compile. I didn't see anythign in command.com properties out of the ordinary. Just selections for window size, fonts, mouse, etc. My path is just set at my java directory. Maybe I need path=c:\windows;c:\jdk1.2.2.\bin. But the path is the last line on the autoexec file.....

  6. #6
    Member
    Join Date
    Mar 2001
    Location
    Singapore
    Posts
    161


    Rhino302

    Your path statement in Autoexec.bat is inaccurate. It should read -

    PATH=C:\jdk1.2.2\bin;C:\Windows;C:\Windows\Command ;A:\

    No other command lines (e.g., classpath) are needed except the ones that are usually run in Autoexec.bat.

    If you still have a problem after entering this line, re-install your OS. It will set the record straight.

    Michael Chiew

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts







New Security Features Planned for Firefox 4
Another Laptop Theft Exposes 21K Patients' Data
Oracle Hits to Road to Pitch Data Center Plans
Microsoft Preps Array of Windows Patches
Microsoft Nears IE9 Beta With Final Preview
Simplified Analytics Improve CRM, BI Tools
Android Passes RIM as Top Mobile OS in 2Q
VMware Updates Hyperic System Management
File Monitoring Key to Enterprise Security
LinkedIn Snaps Up SaaS Player mSpoke