Search found 116 matches
- 06 Oct 2011 23:26
- Forum: DOS Batch Forum
- Topic: I need help here
- Replies: 3
- Views: 4007
I need help here
Hi All, I want to split below contents of source.txt, 0.99Flakes in oil 2.99Safe Guard 0.0035Fleeming 12.999Tissue Holder 123.25-Oasis 1245.88 Amnna The numbers are price and the alpha are product name: I want the output to be like this(tab delimited): Price Product Name 0.99 Flakes in oil 2.99 Safe...
- 09 Sep 2011 20:01
- Forum: DOS Batch Forum
- Topic: Experts please help me
- Replies: 3
- Views: 3743
Re: Experts please help me
thanks ocalabob, ill try that.
- 09 Sep 2011 14:47
- Forum: DOS Batch Forum
- Topic: Experts please help me
- Replies: 3
- Views: 3743
Experts please help me
I have created a batch program that will detect a certain file and write a log report. I have set it up as a listening program using "if exist" and "timeout" commands. It is 98% complete, but I'm stucked with this problem, I tried everything I know and still I can't figure it out...
- 25 Aug 2011 07:01
- Forum: DOS Batch Forum
- Topic: I can't figure it out
- Replies: 1
- Views: 2454
I can't figure it out
Hi All, I have created a batch file that monitors a specified directory, and I did it with the functions that I want(I am monitoring a zip file). Here's my script: :check if exist "*.zip" (goto process) else (goto end) :process my commands here :end timeout /nobreak 180>nul goto check Now ...
- 20 Aug 2011 05:19
- Forum: DOS Batch Forum
- Topic: email
- Replies: 3
- Views: 4435
Re: email
try using blat, http://www.blat.net
- 19 Aug 2011 21:47
- Forum: DOS Batch Forum
- Topic: How can i solve this?
- Replies: 5
- Views: 5415
Re: How can i solve this?
@dave, your given code is not working due to dash (-) that you have declared in variable main, i have modified it and got it working, thanks a bunch. setlocal enabledelayedexpansion for /f "tokens=1 delims=" %%a in ('dir /ad /b "*."') do ( set "main=%%a" for /f "to...
- 19 Aug 2011 07:37
- Forum: DOS Batch Forum
- Topic: How can i solve this?
- Replies: 5
- Views: 5415
Re: How can i solve this?
Hi Dave,
thanks for the reply, but the batch only outputted the !main!.
I think you misunderstood me Dave, I have a folder with this name 00004569 and inside that folder are 00004569_001, 00004569_002 and 00004569_003 subfolders, you can see it in my code.
thanks for the reply, but the batch only outputted the !main!.
I think you misunderstood me Dave, I have a folder with this name 00004569 and inside that folder are 00004569_001, 00004569_002 and 00004569_003 subfolders, you can see it in my code.
- 19 Aug 2011 05:41
- Forum: DOS Batch Forum
- Topic: How can i solve this?
- Replies: 5
- Views: 5415
How can i solve this?
Hi All, I have directory with structure like this: 00004569 - 00004569_001 00004569_002 00004569_003 I want to write it in a text file so I did this: setlocal enabledelayedexpansion for /f "tokens=1 delims=" %%a in ('dir /b "*."') do ( set "main=%%a" for /f "tokens...
- 13 Aug 2011 19:51
- Forum: DOS Batch Forum
- Topic: Quick question, just wondering...
- Replies: 2
- Views: 3041
Re: Quick question, just wondering...
thanks for the reply taripo.
- 13 Aug 2011 11:36
- Forum: DOS Batch Forum
- Topic: Quick question, just wondering...
- Replies: 2
- Views: 3041
Quick question, just wondering...
Hi All, How do you escape double quotes (") in using findstr? Example: source.txt "Paul","Mike" Search string is equal to: ","[a-z] findstr /ric:"","[a-z]" source.txt - this doesn't work findstr /ric:"^",^"[a-z]" source.txt -...
- 28 Jul 2011 03:36
- Forum: DOS Batch Forum
- Topic: Batch Script to format 30,000 text files in multiple folders
- Replies: 2
- Views: 3482
- 28 Jul 2011 03:23
- Forum: DOS Batch Forum
- Topic: Batch file to find file in folder & subfolders
- Replies: 2
- Views: 3593
Re: Batch file to find file in folder & subfolders
try this
Code: Select all
@echo off
dir /s /b > source
set /p "str2find=Search for: "
findstr /s /i "%str2find" source && findstr /i "%str2find" source >> results.csv || echo file not found >> results.csv
del /f /q source
exit /b
- 22 Jul 2011 02:14
- Forum: DOS Batch Forum
- Topic: Quick question
- Replies: 6
- Views: 6103
Re: Quick question
thanks Dave for enlightening me. Thanks a lot.
- 21 Jul 2011 17:25
- Forum: DOS Batch Forum
- Topic: Quick question
- Replies: 6
- Views: 6103
Re: Quick question
thanks for the reply Dave, but what if my text file has a line that have spaces in the start of the line that I want to preserve?
- 21 Jul 2011 03:24
- Forum: DOS Batch Forum
- Topic: Window wont close
- Replies: 3
- Views: 3874
Re: Window wont close
try adding this to the last line of your code:
taskkill /f /im "cmd.exe"
taskkill /f /im "cmd.exe"