Jump to content

how to open files using cmd

Talelbaz
2 minutes ago, Talelbaz said:

how do i open files using the command prompt ? 

cd to the right drive. i.e. if your file is on your D drive, first just do:

D:

And then just paste the file location + name (optionally with quotes (") around it, if the filename has a space in it) and it should open the file using the default program for the file type.

 

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
Share on other sites

Link to post
Share on other sites

Open how? If you just want to read the contents of a file you can use `more`.

more < somefile.txt

If it’s a binary you want to run, use `start`.

start myapp.exe

If neither of those are what you’re after, you’ll have expand on what you want to do.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×