1

(Variables changed)

I used command set /p A_Aaaaaa=<aaaaaa.aaa and it says that such file doesn't exist, so I deleted @echo off from top of file, and searched for line that causes this error. I don't know why, but if I look into CMD that started script, it seem that above set /p command is understood as

set /p A_Aaaaaa= 0<aaaaaa.aaa I don't know where the (space)0 does from, any simple idea?

Ask any informations, be aware that I will change variables though.

3
  • This is one of most strange errors I ever met, because if this set /p commando is started manually from CMD, it works. If pasted into file... it doesn't... operate it... Commented May 22, 2013 at 20:22
  • How do you start the batch file? What directory is current at that time? Is it the same directory that contains the aaaaaa.aaa file? Also, does the batch file change the current directory in the process? On the other hand, all those would not matter if you specified the full path to the file that the set /p command was reading from. Commented May 25, 2013 at 21:52
  • Actually problem is solved by Microsoft, but thank you for trying to help me. Commented May 26, 2013 at 7:59

1 Answer 1

1

0 is STDIN, the standard input stream. Usually set/p reads its input from the user (standard input). With the code set /p A_Aaaaaa=<aaaaaa.aaa you redirect the output from aaaaaa.aaa to the standard input, so set/p can read it. This behavior does not depend on whether the file exists or not. You can read something about streams here.

Sign up to request clarification or add additional context in comments.

13 Comments

No f***, does this one, simple space, really, really matter?!
Ehm, the link you gave, I cannot find anything useful in it... it about strange signs I am not working with (I won't work with them either I think)
This behavior does not depend on whether the file exists or not. 100% it exist. Because its load from internet (VBS) and every user has one... so... A_Aaaaaa, is never empty... (only at begin but thats A LOT of lines before)
Yes, make a file, e.g. echo(blah>aaaaaa.aaa.
Maybe the filename being used has long filename elements and needs to be double quoted.
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.