Create a file with echo in DOS without inserting a carriage return -


i want create new file on cifs mount in dos. if do..

echo hello > foo.txt 

there going cr @ end of hello. how can create file @ dos cmd using echo , not have cr automatically appended. causing problems samba , cifs mount.

from this post:

echo.|set /p ="hello" > foo.txt 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -