Microsoft
Software
Hardware
Network
Question : Replace sring on the first line and then replace ALL the following string(2 to eof)
Hi everybody
i got this piece of ms-dos code but it don't work and very don't know why.
In each csv file on a folder,
I would like to replace , to ; on the first line
After that i would like to replace ," to ;"
here the code that i don't know why it won't works:
==========================
========
@echo off >new & setlocal enabledelayedexpansion
pushd %userprofile%\bureau
for /f "tokens=*" %%a in ('dir /b *.csv') do (
set xx=0
for /f "usebackq tokens=*" %%b in ("%%a") do (
set /a xx+=1
if !xx! lss 3 (
set bb=%%b
set bb=!bb:~,=;!
>> new echo !bb!
) else (
>> new echo %%b
)
)
move /y new "%%a"
)
::------ end
==========================
=
thank you
Answer : Replace sring on the first line and then replace ALL the following string(2 to eof)
Yes, your end-users need to have VIEW SERVER STATE privileges for them to get complete information from sys.sysprocesses view else they would be able to view only requests created from their login only.
Random Solutions
2 exchange accounts on a droid incredable
sql cast(decimalvalue as varchar(50))/100.00 fail
Backing up SQL Server 2000 database on 2008
A perl spreadsheet problem--reading from a specific tab
How do reset bios password on eMachine m5310 Laptop
update textbox without databinding
pictures that make customers more likely to buy shopping cart products
Is there a way to push a themepack to windows 7 computers via GPO? Or a powershell script?
Visual Studio 2008 versus Expression Blend?
How do you move a VB.NET Click Once Deployment to a new network share?