Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
I attempting to write a batch file and am having trouble when running it. There is a line in the file:
'type lastdir.txt > pos'
I am using this line to put the contents of the text file which is simply the number 5 into the variable 'pos'. However, whenever I run the file with echo on it shows up on screen as:
'type lastdir.txt 1>pos'
It adds a 1 before the arrow and deletes the space after. Obviously this causes it not to work. Does anyone know why it does this or how to fix it. I'd appreciate any input. I'd prefer an e-mail to a reply. Thanks for your time.
Name: Enduser Date: July 5, 1999 at 19:47:07 Pacific
Reply:
Without viewing the batch file I can't tell why it would do this. I can tell you a few things. You don't need a spaces before or after the redirection key (the arrow)except for the one after the type command. I could give it a lookie if you want to email the file.
Enduser
0
Response Number 2
Name: khalid Date: July 2, 2000 at 23:01:16 Pacific
Reply:
iam trying to make a batch file so that it copies some dll files from the cdrom from to the system directory. since the cdrom drive letter may vary in different systems iam trying to accept an input from the user for entering the cd rom drive letter and then using that input in the copy command.
how should i go about doing this or is there any other workaround?
please respond.(iam in very urgent need of your help)
Summary: I need to create a batch file that will compare the dates and sizes of two files and if file A is older or smaller than file B, replace file A with file B. Thanks for any help. I'm outta here ;-)...
Summary: Hello, I have batch file that starts a small exe file to connect to a device through COM 1 to send some data. Here's where I need some help. The program does not return error codes, but I need to us...
Summary: If you're on a NT system (Win NT,2K,XP): for /D %a in (C:\FOLDER\*.*) do echo %a If you're using this inside a batch file, double the %'s (%%a) On Win9x, it's more complex. A batch file is needed: ===...