Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 01:28 29 Mar 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Command Window query

Author Message
Bowden_P
Senior Member

Joined: 20/03/2019
Location: United Kingdom
Posts: 162
Posted: 09:30pm 03 Dec 2022
Copy link to clipboard 
Print this post

Hi everyone,
I have a PC running Windows 10 with a SSD drive C:, and a conventional disc drive D:.

I am trying to use Serge's "pic32prog" for the first time on this machine, wishing to run it from drive D:,
but can't get the Command Window prompt to point to this disc. It sticks to the C: drive.

The "Help" list of commands doesn't seem to have one that specifically changes the disc,
and attempts with "CD" or "CHDIR" and "D:\pathname" don't work. I don't get any error message,
just no action on the command, and no change of disc.

Is it possible to change discs within the Command Window - or by some other means - to run from the D: drive?

With best regards, Paul.
Nothing so constant as change.
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 839
Posted: 10:12pm 03 Dec 2022
Copy link to clipboard 
Print this post

Google says this. Seems to work.
This opens a command prompt in D:\movies when entered from Run menu in windows.

cmd.exe /K "cd /d D:\movies\"
Latest F4 Latest H7
 
Bowden_P
Senior Member

Joined: 20/03/2019
Location: United Kingdom
Posts: 162
Posted: 10:50pm 03 Dec 2022
Copy link to clipboard 
Print this post

Hi disco4now,
I wasn't sure where the "Run menu" you refer to was - I'm showing my ignorance of PC's here - but typing :-

cmd.exe /K "cd /d D:\Paul\Paul's Stuff\Micromite\Firmware and other Code\Microbridge to PIC32 hex transfers"

into the "Type here to search" box bottom left of the desktop screen opens a Command window where I need it!

( I hope that is where you refer to.)

Many thanks for this, Paul.
Nothing so constant as change.
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 839
Posted: 10:55pm 03 Dec 2022
Copy link to clipboard 
Print this post

Run is a menu item if you right click on the window icon at bottom left,but looks like the search thing does the job as well and one less step.
Latest F4 Latest H7
 
Bowden_P
Senior Member

Joined: 20/03/2019
Location: United Kingdom
Posts: 162
Posted: 11:21pm 03 Dec 2022
Copy link to clipboard 
Print this post

Hi disco4now,
Thanks for that - a much better way to get to the Command prompt where I need it. That right click is a whole new menu for me!

With best regards, Paul.
Edited 2022-12-04 09:23 by Bowden_P
Nothing so constant as change.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1721
Posted: 05:02am 04 Dec 2022
Copy link to clipboard 
Print this post

DOS has always been a bit funny. Typing CD D:\TEMP changes the directory in drive D: but not to drive D:
To do that just type D: <enter>
 
Bowden_P
Senior Member

Joined: 20/03/2019
Location: United Kingdom
Posts: 162
Posted: 05:45pm 04 Dec 2022
Copy link to clipboard 
Print this post

Hi phil99,
Well I never - thanks. Yes, DOS is certainly odd. I guess it harks back to the dawn of PC's, when Windows and mice didn't exist.

I've managed to find the cmd.exe in "C:\Windows\System32", created a shortcut, and then edited the target to start it with disco4now's  /K "cd/d D:\pathname......"  extension - gets me there directly. ( space required before the /K )

Brilliant !

With thanks to you both, Paul.
Nothing so constant as change.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024