Login Register






[Batch] Help w/ Wierd Spacing Issue filter_list
Author
Message
RE: [Batch] Help w/ Wierd Spacing Issue #12
(03-23-2014, 01:45 AM)0xDEAD10CC Wrote: That sounds like a make belief story to me, no that's not it. Post your code in code tags please.

Code:
@echo off& setlocal enabledelayedexpansion set outfile=Z:\batch.txt :: save to file set name=Bob echo %name%> %outfile% call :get_name :: resave the name to file echo %name%> %outfile% call :get_name :: dummy if statement (just for proof) set name=Billy if 1==1 echo %name%> %outfile% call :get_name goto :eof :: grab name from file and show value :get_name set /p name=<%outfile% echo Variable created from file: %name% goto :eof

No spaces...

Code:
Variable created from file: Bob Variable created from file: Bob Variable created from file: Billy

So I fixed everything, so it seems. If you would like, give it another shot and see if you cant find any issues! Thank you so much for all your help!
(I resubmitted the updated version and changed the version number to 2.0)
Scientia potentia est

[Image: inkexplosion.jpg]

Reply





Messages In This Thread
[Batch] Help w/ Wierd Spacing Issue - by DarkMuse - 03-04-2014, 02:37 AM
RE: [Batch] Help w/ Wierd Spacing Issue - by DarkMuse - 03-23-2014, 05:01 AM