1.

Solve : Dos prompt?

Answer»

Since I upgraded to WindowsXP Pro I haven't been able to, don't know how, change directorys.
At my Dos prompt I have, C:\WINDOWS\SYSTEM32>
I tried, cd Windows, but it won't work
If I type A: it will change to, A:\>
By right clicking on the MS-Doc Command icon and bringing up Properties then clicking the
Program tab, I have in the Cmd line box: C:\WINDOWS\system32\command.com, and in the Working box:, C:\WINDOWS\system32
Is this where I have to amend any of these lines and if so, what do I change them to and is it safe to do so.
I need to open or edit a BAS programs at C:\Qbasic so I get them into Notepad.
When you enter CD Windows the system is looking for a directory named Windows as a child (subdirectory) of C:\Windows\System32 which does not exist.

Use CD C:\Windows (Note the C:\)

Quote

By right clicking on the MS-Doc Command icon and bringing up Properties then clicking the
Program tab, I have in the Cmd line box: C:\WINDOWS\system32\command.com, and in the Working box:, C:\WINDOWS\system32

Suggest change your Cmd line box to read C:\WINDOWS\SYSTEM32\CMD.EXE

and change your working box to read C:\

then when you click the icon you will always open cmd.exe and have just C:\> as the prompt.

Or IMHO better still, CREATE a new shortcut on your desktop for cmd.exe

Good luck

Thanks Dusty,
After I posted I discovered that I should have entered at the prompt:
C:\WINDOWS\SYSTEM32> cd \QBasic, I forgot the slash.
I have in my C:\Qbasic folder a program titled Cory.bas.
I tried to open it using: C:\QBasic> QBasic /run Cory and C:\QBasic> QBasic /run Cory.bas but neither worked.
LMK if this should this work?

I already had a shortcut named: MS-DOS Command
I renamed this, shortcut to Cmd.exe.

In CMD.exe properties/Program Tab:
I now have at the Cmd line C:\WINDOWS\system31\cmd.exe
Working is:C:\WINDOWS\system32

I have this set to open as a window but when I want to copy a program from a forum to Qbasic I just need to change it to open as a window.

I'm 79 and some of this is starting to FRAZZLE what little grey stuff I have left.

You didn't indicate which version of QBasic you are using but...

In the version I use (Qbasic 4.5) the interpreter is named QB not QBasic so the command to load it and run your program would be QB /RUN Cory.bas

LMK what error message you get (if any)

Upper case is used for emphasis only.

At your prompt C:\Windows\system32 type cd\Qbasic...
Then C:\QBasic> QBasic /run Cory and C:\QBasic> QBasic /runQuote from: chequer on October 28, 2007, 11:20:20 PM
Since I upgraded to WindowsXP Pro I haven't been able to, don't know how, change directorys.
At my Dos prompt I have, C:\WINDOWS\SYSTEM32>
I tried, cd Windows, but it won't work
If I type A: it will change to, A:\>
By right clicking on the MS-Doc Command icon and bringing up Properties then clicking the
Program tab, I have in the Cmd line box: C:\WINDOWS\system32\command.com, and in the Working box:, C:\WINDOWS\system32
Is this where I have to amend any of these lines and if so, what do I change them to and is it safe to do so.
I need to open or edit a BAS programs at C:\Qbasic so I get them into Notepad.
Dusty,
I managed to work it out. I had forgot that I had renamed Qbasic.exe to q.exe
All I have to do is at C:\WINDOWS\system32> is to enter cd \qbasic to bring up,
C:\Qbasic> then C:\Qbasic>q /run cory.txt to open the file.
I am using QB 1.1
I have just bought a new Microsoft MultiMedia KEYBOARD 1.0A kb0186, It has a Fkey on/off BUTTON on it.
On my old keyboard if I made a typing error at the Prompt, I could by pressing F3, bring back the text I had entered..
Regardless of the Fkey button being on or off it doesn't work now.
In a program I use a lot, to save a lot of typing I have defined the F keys as,
KEY 6, "WED" + chr$(13): key 7, "THU" +CHR$(13) etc..., won't work on my new Keyboard.
Any clues?
Quote from: patio on October 30, 2007, 06:13:07 AM
At your prompt C:\Windows\system32 type cd\Qbasic...
Then C:\QBasic> QBasic /run Cory and C:\QBasic> QBasic /run
Thanks patio,
I managed to work it out. I had forgot that I had renamed Qbasic.exe to q.exe
All I have to do is at C:\WINDOWS\system32> is to enter cd \qbasic to bring up,
C:\Qbasic> then C:\Qbasic>q /run cory.txt to open the file.
I am using QB 1.1

See my reply to dusty


Discussion

No Comment Found