help on creating a file
Posted: 04 May 2011 10:42
Hi All!
I'm executing this command in the cmd command line:
dir c:\mypath\myfolder /b /s > outputfile.txt
This will create a file called outputfile.txt that contains:
c:\mypath\myfolder\\acpkseod.SQL
c:\mypath\myfolder\ACPKSMSC.SQL
c:\mypath\myfolder\CAPKS_FCJ_CADRSMNT_ADDON.SQL
.....
I need to concatenate the "@" before "c:\" in all the lines inside the outputfile.txt, so it will look like this:
@c:\mypath\myfolder\ACPKSMSC.SQL
@c:\mypath\myfolder\CAPKS_FCJ_CADRSMNT_ADDON.SQL
@c:\mypath\myfolder\CAPKS_FCJ_CADSPMNT_ADDON.SQL
how to do this?
Thanks
I'm executing this command in the cmd command line:
dir c:\mypath\myfolder /b /s > outputfile.txt
This will create a file called outputfile.txt that contains:
c:\mypath\myfolder\\acpkseod.SQL
c:\mypath\myfolder\ACPKSMSC.SQL
c:\mypath\myfolder\CAPKS_FCJ_CADRSMNT_ADDON.SQL
.....
I need to concatenate the "@" before "c:\" in all the lines inside the outputfile.txt, so it will look like this:
@c:\mypath\myfolder\ACPKSMSC.SQL
@c:\mypath\myfolder\CAPKS_FCJ_CADRSMNT_ADDON.SQL
@c:\mypath\myfolder\CAPKS_FCJ_CADSPMNT_ADDON.SQL
how to do this?
Thanks