Search found 4315 matches
- 18 May 2012 21:19
- Forum: DOS Batch Forum
- Topic: UTF-8 To Unicode
- Replies: 8
- Views: 20295
Re: UTF-8 To Unicode
I was just testing with plain old american english. Just 3 sentences. I used notepad to save it as UTF-8 and then ran the code. I was going to post a screen shot but didn't have time earlier.
- 18 May 2012 19:04
- Forum: DOS Batch Forum
- Topic: UTF-8 To Unicode
- Replies: 8
- Views: 20295
Re: UTF-8 To Unicode
I tried just the original code and it seemed to do ok when I told my file viewing software to display the output file using UTF-16LE but there were a few unreadable characters at the beginning.
- 18 May 2012 11:11
- Forum: DOS Batch Forum
- Topic: if Find higher Number then write it to file B
- Replies: 9
- Views: 6757
Re: if Find higher Number then write it to file B
Would there be any drawback to just using SET /P redirection?
Code: Select all
@echo off
:loop
set /p abc=<abc.txt
set /p xyz=<xyz.txt
IF %abc% GTR %xyz% >xyz.txt echo %abc%
goto :loop
- 17 May 2012 06:53
- Forum: DOS Batch Forum
- Topic: Why does | to a non-existent command, cause an Exit?
- Replies: 6
- Views: 4585
Re: Why does | to a non-existent command, cause an Exit?
Code: Select all
H:\>(echo d | CALL azacav) & echo f
'azacav' is not recognized as an internal or external command,
operable program or batch file.
f
- 17 May 2012 06:50
- Forum: DOS Batch Forum
- Topic: Date And Time not getting Updated....!
- Replies: 5
- Views: 3997
Re: Date And Time not getting Updated....!
prash11,
Kind of the same thing as your previous thread. '
viewtopic.php?f=3&t=3297
Do you understand now when you have to use delayed expansion?
Kind of the same thing as your previous thread. '
viewtopic.php?f=3&t=3297
Do you understand now when you have to use delayed expansion?
- 16 May 2012 05:35
- Forum: DOS Batch Forum
- Topic: ErrorLevel Command Required?
- Replies: 26
- Views: 16696
Re: ErrorLevel Command Required?
I certainly agree with Foxidrive. You seem to be contradicting yourself.
Matt20687 wrote:If the word Unreported does not occur in ims.txt i would like it to go back to MENU.
Matt20687 wrote:If it is not in the ims file i need it to carry on with the loop.
- 15 May 2012 15:48
- Forum: DOS Batch Forum
- Topic: ErrorLevel Command Required?
- Replies: 26
- Views: 16696
Re: ErrorLevel Command Required?
Then change the double || to a double && in Foxi's code.
- 15 May 2012 07:59
- Forum: DOS Batch Forum
- Topic: ErrorLevel Command Required?
- Replies: 26
- Views: 16696
Re: ErrorLevel Command Required?
Why would you even want it to process for the loop if it is not in the IMS file?
- 15 May 2012 05:08
- Forum: DOS Batch Forum
- Topic: can we login into gmail account using batch?
- Replies: 9
- Views: 8681
Re: can we login into gmail account using batch?
abc0502 wrote:I think VBscript can do it
I thought so too and I actually found one online that does it but I could never get it to work.
- 14 May 2012 08:00
- Forum: DOS Batch Forum
- Topic: can we login into gmail account using batch?
- Replies: 9
- Views: 8681
Re: can we login into gmail account using batch?
prash11 wrote:my requirement is after every reboot the batch program file should start.
and it should open the my gmail inbox.
before admin login on my machine.
i know how to start it after reboot but i dont know if i can open gmail inbox using batch file.
Have your browser save your login credentials.
- 14 May 2012 07:42
- Forum: DOS Batch Forum
- Topic: can we login into gmail account using batch?
- Replies: 9
- Views: 8681
Re: can we login into gmail account using batch?
prash11 wrote:no no i don't want to send and receive mail.
i am just asking is it possible or not.
and if it is possible then how?
and if it is not then why not?
This makes no sense.
- 14 May 2012 05:51
- Forum: DOS Batch Forum
- Topic: can we login into gmail account using batch?
- Replies: 9
- Views: 8681
Re: can we login into gmail account using batch?
And you are planning on doing this to send or receive mail?
I would think any pop3 client that supports command line input would work.
I would think any pop3 client that supports command line input would work.
- 13 May 2012 11:48
- Forum: DOS Batch Forum
- Topic: move files to folders named by date from files
- Replies: 16
- Views: 8967
Re: move files to folders named by date from files
I think it is quite dificult. maybe it can by easyli like this: forfiles /p C:\folder /d -60 /c "cmd /c del @file" but it does not work. It only delete files inside folders and I must press Y to delete. Is it possible to do without Y ? As aGerman has already shown you the DEL command dele...
- 13 May 2012 00:07
- Forum: DOS Batch Forum
- Topic: REG EXPORT: Hex returned?
- Replies: 1
- Views: 4088
Re: REG EXPORT: Hex returned?
REM Win7 64-bit REM real path REG EXPORT "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" REM Hex path REG EXPORT "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" On my machine, both registry keys conta...
- 12 May 2012 23:42
- Forum: DOS Batch Forum
- Topic: How to sort numbers in a text file?
- Replies: 19
- Views: 16856
Re: How to sort numbers in a text file?
It turned out being easier to just change a single line. Surprisingly this worked! If I wasn't able to find such a quick solution, I would have to abandon using the forfiles command and add more lines of code to take it's place. for /f tokens^=1^,2^ eol^=^"^ delims^=^" %%a in (files.txt) ...