Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Command Window

31 Jan 2012   #1
Windowsseven100

WINDOWS 7
 
 
Command Window

When I type cmd into the Start box it comes up with the command window. I then type pdflatex file.tex (where file is replaced with the name of the file) and it says that it can't find the input file. What should I have done, exactly?


My System SpecsSystem Spec
.
31 Jan 2012   #2
Sir George

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by Windowsseven100 View Post
When I type cmd into the Start box it comes up with the command window. I then type pdflatex file.tex (where file is replaced with the name of the file) and it says that it can't find the input file. What should I have done, exactly?
This is a guess; are yout looking for a "TEXT" file? If so, the extension is "txt", not "tex".
My System SpecsSystem Spec
31 Jan 2012   #3
Windowsseven100

WINDOWS 7
 
 

No, it is a file generated by MikTeX
My System SpecsSystem Spec
.

31 Jan 2012   #4
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

Command Prompt does not understand (.tex) to the best of my knowledge. As has been mentioned by Ser George. Could you explain what you are trying to do so others might be able to help.
Also make sure you use the cmd.prompt as admin.
My System SpecsSystem Spec
31 Jan 2012   #5
FliGi7

XP / Win7 x64 Pro
 
 

Are you typing this in the search box or a command prompt window? If you're in the command prompt window, it probably can't find the file because the file isn't in the default location the command window opens to. You either have to navigate to the directory where the file is located (using "cd" commands) or type the full file path to file surrounded in quotes (e.g. pdflatex "C:\Users\MyName\MyFiles\file.tex").
My System SpecsSystem Spec
31 Jan 2012   #6
Windowsseven100

WINDOWS 7
 
 

I am using the Command Window. Yes, you are right, I should have missed off the .tex



How do you access files with the Command Window? I wish to perform the command
pdflatex on a file but it says it can't find the input file. I don't know how to use commands like cd
My System SpecsSystem Spec
31 Jan 2012   #7
FliGi7

XP / Win7 x64 Pro
 
 

My System SpecsSystem Spec
31 Jan 2012   #8
rraod

MS Windows 7 Ultimate 64-bit SP1
 
 

To run a file as an argument to an executable file inside command window, the executable file should be in the path enviroment variable or you have to give the complete the path to the executable file.

Now in windows explorer go to the folder containing the .tex file you wish to pass as argument. Press shift key and right click on the folder. On the context menu, you will see "Open command window here". Select this command to open the command window inside this folder. Now you can give the executable file followed by a space and the file you wish to run.

If there are any spaces in the file names, you have to include the entire file name (and path if any like Program files) in double quotes.
My System SpecsSystem Spec
Reply

 Command Window




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Setting the window icon for a command prompt window
I have a set of scheduled tasks, all of which run programs written in Open Object REXX. Consequently, the Command Prompt windows where these tasks runs inherit their icons (at the top left of the window) from the rexx.exe program that handles my scripts. This means that all of these REXX tasks...
General Discussion
Open Command Window Here
How to Use "Open Command Window Here" in Windows 7 This will show you how to use the Open Command Window Here context menu item of a folder or drive to open a command prompt with the focus at the folder or drive location in Windows 7. This will make it easier to perform a command task at...
Tutorials
No REG Command in "Open elevated command window here" DOS Box
I have used the @="cmd.exe /s /k pushd \"%V\"" type of Registry mod to obtain a context menu "Open elevated command window here" menu item, such as in the "Open elevated command window here" thread ( http://www.sevenforums.com/general-discussion/75069-open-elevated-command-window-here.html ). ...
General Discussion
Command Window at Startup
This is the second day in a row when I have started up my PC and a black command window popped up with a blinking cursor. Yesterday I just closed it after some time but now that I'm touching it, it isn't going away on its own. The title of the window is: C:\ProgramData\Microsoft\Windows\Start...
Performance & Maintenance
Open Command Window Here
For all DRIVES, <shift>|right-clicking displays OPEN COMMAND WINDOW HERE in the context menu, above the first separator. That item opens the command prompt. But for all other folders the OPEN COMMAND WINDOW HERE item displays below the first separator in the context box, and clicking on it...
General Discussion
Command Window / Can't copy
Hi guys, please anybody move this thread, I didn't know where to post :) I have the following problem... a friend of mine owns an Acer Aspire One netbook with XP and he wanted me to install Windows 7 (RC). Well, I did so and it worked for weeks. Now (I don't know what he was doing) there's...
Installation & Setup


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 10:33.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App