dexter23 Posted June 3, 2008 Share Posted June 3, 2008 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 Link to comment Share on other sites More sharing options...
monoceres Posted June 3, 2008 Share Posted June 3, 2008 Like this maybe? $read=FileOpen("input.txt",0) $write=FileOpen("output.txt",1) Do $line=FileReadLine($read) If @error Then ExitLoop FileWriteLine($write,$line&"\Plugins") Until False FileClose($read) FileClose($write) FileDelete("input.txt") FileMove("output.txt","input.txt") Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
dexter23 Posted June 3, 2008 Author Share Posted June 3, 2008 It works perfect. Thanks Link to comment Share on other sites More sharing options...
ProgAndy Posted June 3, 2008 Share Posted June 3, 2008 ??? 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 Link to comment Share on other sites More sharing options...
Paulie Posted June 3, 2008 Share Posted June 3, 2008 You can always open it in SciTE and do a Find and Replace Find: .atl; DestDir: {app} Replace: .atl; DestDir: {app}\Plugins Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now