Search found 15 matches

by carmine
24 Aug 2016 01:02
Forum: DOS Batch Forum
Topic: Findstr to remove whitespace in xml files
Replies: 5
Views: 6931

Re: Findstr to remove whitespace in xml files

Hi,

I want to remove all the whitespace /Tab from each and every line

That's working perfectly.

If i want to only remove the leading space before " <"

Thanks.
by carmine
18 Aug 2016 11:28
Forum: DOS Batch Forum
Topic: Findstr to remove whitespace in xml files
Replies: 5
Views: 6931

Findstr to remove whitespace in xml files

Hi, There are multiple xml files in folder d:/global and I want to remove all the whitespace /Tab from each and every line from the xml files in the folder. I tried "findstr /r /v /c:" " /c:"^$" *.xml " XML file <?xml version="1.0" encoding="UTF-8"?>...
by carmine
29 Oct 2015 11:32
Forum: DOS Batch Forum
Topic: Prompt User for Input
Replies: 1
Views: 2568

Prompt User for Input

Hello, I need a batch file which accepts user input for file name once the file name is provided by the user it will verify with system date/time and file creation date/time and flash on screen the difference between them and prompt the user to proceed with it or not, if yes then call 2nd batch file...
by carmine
28 Oct 2015 10:39
Forum: DOS Batch Forum
Topic: Find and Replace text
Replies: 2
Views: 3237

Find and Replace text

Hello, I need a script to find any instance of BY Card No.: BY Card No.: 2167 3287 7374 8487 BY Card No.: Numeric 12323 BY Card No.: Numeric 12323 inside the text file and replace the [:] colon to [#] hash. BY Card No.[b]#[/b]2167 3287 7374 8487 BY Card No.[b]#[/b]Numeric 12323 BY Card No.[b]#[/b]Nu...
by carmine
26 Mar 2014 16:08
Forum: DOS Batch Forum
Topic: Exempt Folder while creating rar
Replies: 8
Views: 7311

Re: Exempt Folder while creating rar

Hi,

Thanks to all for supporting.
The -x switch in my case works.
Thanks a lot.
by carmine
10 Feb 2014 05:39
Forum: DOS Batch Forum
Topic: Set Clock back for hours
Replies: 6
Views: 5134

Re: Set Clock back for hours

Hi,

Thanks a lot.
by carmine
10 Feb 2014 05:05
Forum: DOS Batch Forum
Topic: Set Clock back for hours
Replies: 6
Views: 5134

Re: Set Clock back for hours

Hi,

Tricky, Thanks foxidrive.

Is there any trick to sync the time with server any tricky way.

Thanks
by carmine
10 Feb 2014 04:46
Forum: DOS Batch Forum
Topic: Set Clock back for hours
Replies: 6
Views: 5134

Re: Set Clock back for hours

foxidrive wrote:What do you want to happen if it is 1am? Will it have to change to 11pm the day before?


Thanks for response.

Infact the script will be run under schedule task at 11:45 P.M. To delay the date (day) change.
by carmine
10 Feb 2014 04:04
Forum: DOS Batch Forum
Topic: Set Clock back for hours
Replies: 6
Views: 5134

Set Clock back for hours

Hi, I have this codes which does the clock back in minutes i need to set back for 2 hours. How to do that. @echo off set /a mm=%time:~3,2% set /a hh=%time:~0,2% if %mm% lss 5 (set /a hh=%hh%-1) & set /a mm=%mm%+60 if %hh% equ -1 set /a hh=23 set /a mm=(%mm%-5) time %hh%:%mm% (set mm=) & set ...
by carmine
21 Jan 2014 23:35
Forum: DOS Batch Forum
Topic: Move Files
Replies: 2
Views: 2957

Re: Move Files

foxidrive wrote:Robocopy can move and exclude filetypes.



Thankyou Foxidrive.
by carmine
21 Jan 2014 21:31
Forum: DOS Batch Forum
Topic: Move Files
Replies: 2
Views: 2957

Move Files

Hello,

In folder D:\XML I have lots of files and i want to move all the files accept this two files INVOICE*.* & DATA_INV*.* to a folder at D:\Otherstuff.

Thanks in advance.
by carmine
20 Nov 2013 03:58
Forum: DOS Batch Forum
Topic: Help needed for downloading files from FTP
Replies: 8
Views: 7489

Re: Help needed for downloading files from FTP

What does this mean then? the batch file would require to search rescursively and download them. Thankyou very much foxidrive for response. I mean to say i have 3 folders under root. / folder-1 [upload] (used for uploading files to main office) folder-2 [reports] (reports and statics, mostly pdf fi...
by carmine
19 Nov 2013 23:10
Forum: DOS Batch Forum
Topic: Help needed for downloading files from FTP
Replies: 8
Views: 7489

Re: Help needed for downloading files from FTP

Hi Squashman,

There is no reply from your side, Please if can help me.
by carmine
18 Nov 2013 19:39
Forum: DOS Batch Forum
Topic: Help needed for downloading files from FTP
Replies: 8
Views: 7489

Re: Help needed for downloading files from FTP

Hi, Thanks Squashman for response, Thats You want to shutdown the computer when all files are downloaded but without knowing how many files are suppose to be downloaded how can we be sure we have all the files and can shutdown the computer? Sorry, i did not mention that as soon as session (all the f...
by carmine
18 Nov 2013 14:21
Forum: DOS Batch Forum
Topic: Help needed for downloading files from FTP
Replies: 8
Views: 7489

Help needed for downloading files from FTP

Hi, I never wrote batch files before and now I am having this requirement to automatically download files from FTP Server which are delivered between 8 to 11 p.m. I being a newbie my expert friends can understand my problem and help me in sorting this. I did google search for downloading files from ...