Search found 8 matches
- 19 Nov 2010 01:20
- Forum: DOS Batch Forum
- Topic: Reading variables from a text file Using For /F command
- Replies: 15
- Views: 18432
Re: Reading variables from a text file Using For /F command
Thanks, it worked, even with all sort of characters at the end of the file, ";@| Even uncompleted statements like Set en-uk I will use your last suggestion, so in the near future others can modify the batch file without locking up Thanks again for all the support you given me, i do appreciate ...
- 16 Nov 2010 16:09
- Forum: DOS Batch Forum
- Topic: Reading variables from a text file Using For /F command
- Replies: 15
- Views: 18432
Re: Reading variables from a text file Using For /F command
problem solved, i found out if the last line of the text file contains a colon then the batch file hangs. The supicious lines is a mistaake, copied from another file. well spotted The quote signs is also a mistake, not required. Entered for debugging and fogot to remove it after Thanks again for all...
- 15 Nov 2010 17:28
- Forum: DOS Batch Forum
- Topic: Reading variables from a text file Using For /F command
- Replies: 15
- Views: 18432
Re: Reading variables from a text file Using For /F command
Am awuful sorry, the error is in the text file. I have remove all comments etc from the text file and it is working okay. But I can see why, so I will have to add comments one by one to see the line causing the problem. As am new to the forum I can't find a way to add attachment or upload files so h...
- 14 Nov 2010 04:18
- Forum: DOS Batch Forum
- Topic: Reading variables from a text file Using For /F command
- Replies: 15
- Views: 18432
Re: Reading variables from a text file Using For /F command
sorry to say it hangs I replace setsfile with the location of file and it hangs nver comes out of the loop also tried set setsfile= D:\WinpeDismCreate\NewFilename_M11.txt i @echo off set LANG=EN-UK set setsfile= D:\WinpeDismCreate\NewFilename_M11.txt rem applying language settings for /f "token...
- 12 Nov 2010 16:31
- Forum: DOS Batch Forum
- Topic: Reading variables from a text file Using For /F command
- Replies: 15
- Views: 18432
Re: Reading variables from a text file Using For /F command
!K
Am still waiting for your reply, really stuck
Am still waiting for your reply, really stuck
- 07 Nov 2010 13:14
- Forum: DOS Batch Forum
- Topic: Reading variables from a text file Using For /F command
- Replies: 15
- Views: 18432
Re: Reading variables from a text file Using For /F command
I want every line that contains EN-UK but want to return sFileOrder sFileOrder=M11_EN-UK.txt (2nd variant)
So if there are say 10 lines containg EN-UK I want all 10
The variable s....=
Thanks again been tearing my hair out tring to resolve (lol)
So if there are say 10 lines containg EN-UK I want all 10
The variable s....=
Thanks again been tearing my hair out tring to resolve (lol)
- 07 Nov 2010 09:26
- Forum: DOS Batch Forum
- Topic: Reading variables from a text file Using For /F command
- Replies: 15
- Views: 18432
Re: Reading variables from a text file Using For /F command
what does set e do and also if am looking for n variables, do I have to add %%a %%b %%c ...%%n? for /f "tokens=1,3* delims= " %%a in ('find /v ":" ^< D:\WinpeDismCreate\NewFilename_M11.txt ^| find "%LANG%"') do ( %%a %%b %%c %%d %%e %%f %%g %%h ) set s echo %%a I done t...
- 06 Nov 2010 11:58
- Forum: DOS Batch Forum
- Topic: Reading variables from a text file Using For /F command
- Replies: 15
- Views: 18432
Reading variables from a text file Using For /F command
Am trying to read a known variables from a text file using For /F command and can't see how to set the variables in the batch file. My batch file reads as follows. set LANG=EN-UK for /f "tokens=* delims= " %%a in ('find /v ":" ^< setsfile ^| find "%LANG%"') do ( %%a ) s...