Sign in to follow this  
Followers 0
dexter23

Add some string of characters after each line of a .txt file

5 posts in this topic

Hi,

I want to build a package with ISTool. I have about 1700 files to include in the package. The problem is that with ISTool you can't

specify a destination directory other that {app}. Since are a lot of files, I need a script which will add some text after the end of {app}

For example, these lines:

Source: {app}\mh.atl; DestDir: {app}
Source: {app}\mi.atl; DestDir: {app}
Source: {app}\mn.atl; DestDir: {app}

I need to look like this:

Source: {app}\mh.atl; DestDir: {app}\Plugins
Source: {app}\mi.atl; DestDir: {app}\Plugins
Source: {app}\mn.atl; DestDir: {app}\Plugins

Share this post


Link to post
Share on other sites



It works perfect. Thanks :)

Share this post


Link to post
Share on other sites

??? You can type the Directory in by hand in ISTool->Files/Directories->New Entry , I think. At least it works for me


*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

You can always open it in SciTE and do a Find and Replace

Find:

.atl; DestDir: {app}

Replace:

.atl; DestDir: {app}\Plugins

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0