Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - Command Window

 
01-31-2012   #1


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
01-31-2012   #2


Windows 7 Home Premium 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
01-31-2012   #3


WINDOWS 7
 
 


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


01-31-2012   #4


windows 7 home premium 64/SP1
 
 


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
01-31-2012   #5


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
01-31-2012   #6


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
01-31-2012   #7


XP / Win7 x64 Pro
 
 


My System SpecsSystem Spec
01-31-2012   #8


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 problems?



Thread Tools



Similar Threads for: Command Window
Thread Forum
Open Command Window Here - Add or Remove Tutorials
Command Window at Startup Performance & Maintenance
Open Command Window Here Tutorials
Open Command Window Here General Discussion
Command Window / Can't copy Installation & Setup


All times are GMT -5. The time now is 02:13 AM.



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
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30