How open files respectively in a directory ?

HELLO
I got this code from this forum to open files and run a macro then close them in a directory . But this code doesn`t execute as I need. I want open files and run macro and close themو respectively . ٍٍEven I numbered files in a sequece but it doesn`t work.
Can anyone help in this issue !? 
Sub ProcessFolder()
' Path of the workbooks; must end in \
Const strFolder = "F:\NEW DATA with 4 sheets - Copy\"
Dim strFile As String
Dim wbk As Workbook
' Don't update the screen for efficiency
Application.ScreenUpdating = False
' Get first filename
strFile = Dir(strFolder & "*.xls*")
' Loop through the files
Do While strFile <> ""
' Open the workbook
Set wbk = Workbooks.Open(strFolder & strFile)
' Do something with the workbook
Call Macro1
' Close the workbook - use False if you don't want to save it
wbk.Close SaveChanges:=False
' Get the next filename
strFile = Dir
Loop
' Update the screen again
Application.ScreenUpdating = True
End Sub
THANKs
ABBAS

'Don't forget to end the path With the \ character:
Private Const csFolder = "C:\Temp\1\"
'Private Const sFolder = "F:\NEW DATA with 4 sheets - Copy\"
Private Sub pProcessFolder()
Dim sDir As String
Dim avFiles() As Variant
Dim vFile As Variant
Dim lFile As Long
Dim wb As Excel.Workbook
sDir = Dir(csFolder & "*")
Do While sDir <> ""
lFile = lFile + 1
ReDim Preserve avFiles(1 To lFile)
avFiles(lFile) = csFolder & sDir
sDir = Dir
Loop
pQuickSort avFiles
Application.ScreenUpdating = False
For Each vFile In avFiles
Set wb = Workbooks.Open(vFile)
Debug.Print wb.Name
Call Macro1
wb.Close SaveChanges:=False
Next vFile
Application.ScreenUpdating = True
End Sub
Sub Macro1()
End Sub
Private Function pQuickSort(vSort As Variant, _
Optional vLow As Variant, _
Optional vHigh As Variant) As Variant
'Ordena um vetor utilizando um algoritmo do tipo Quick Sort.
Dim vPivot As Variant
Dim vSwitch As Variant
Dim lLow As Long
Dim lHigh As Long
If IsMissing(vLow) Then vLow = LBound(vSort)
If IsMissing(vHigh) Then vHigh = UBound(vSort)
lLow = vLow
lHigh = vHigh
vPivot = pTransform(vSort((vLow + vHigh) \ 2))
Do While lLow <= lHigh
Do While pTransform(vSort(lLow)) < vPivot And lLow < vHigh
lLow = lLow + 1
Loop
Do While vPivot < pTransform(vSort(lHigh)) And lHigh > vLow
lHigh = lHigh - 1
Loop
If lLow <= lHigh Then
vSwitch = vSort(lLow)
vSort(lLow) = vSort(lHigh)
vSort(lHigh) = vSwitch
lLow = lLow + 1
lHigh = lHigh - 1
End If
Loop
If vLow < lHigh Then pQuickSort vSort, vLow, lHigh
If lLow < vHigh Then pQuickSort vSort, lLow, vHigh
End Function
Private Function pTransform(vItem As Variant) As Long
Dim aux As String
aux = vItem
aux = Mid(aux, Len(csFolder) + 1)
aux = Split(aux, "-")(0)
pTransform = aux
End Function
Felipe Costa Gualberto - http://www.ambienteoffice.com.br

Similar Messages

  • Open files from a specific directory

    Dear all,
    I have the following source code that simply selects files from a directory.
    private void openFile()
    JFileChooser fileChooser = new JFileChooser();
    fileChooser.setFileSelectionMode(
    JFileChooser.FILES_ONLY );
    int result = fileChooser.showOpenDialog( this );
    // user clicked Cancel button on dialog
    if (result == JFileChooser.CANCEL_OPTION )
    return;
    File filename = fileChooser.getSelectedFile();
    if (filename == null || filename.getName().equals( "" ))
    JOptionPane.showMessageDialog( this,
    "Invalid File Name",
    "Invalid File Name", JOptionPane.ERROR_MESSAGE );
    else
    // open the file
    try
         // Open an input stream
         FileInputStream fin1 = new FileInputStream(filename);
    // Read and print a line of text
    BufferedReader d1 = new BufferedReader(new InputStreamReader(fin1));
    abs = d1.readLine();
    outputArea1.setText("");
    outputArea1.append(abs + "\n\n");
    outputArea1.setCaretPosition(0);
    // Close our input and output stream
    fin1.close();
    catch (IOException e5) {
    JOptionPane.showMessageDialog(this, "Error Opening File", "Error", JOptionPane.ERROR_MESSAGE);
    } // end catch
    } // end else
    } // end private
    My question is: Can I force it to open files from a specific directory, and NOT from MyDocuments directory????
    thanks,
    vxc

    \r = return
    \n = linefeed
    \j = illegal escape character
    JFileChooser fileChooser = new JFileChooser("C:\j2sdk1.4.2\bin");
    You could/should use:
    (new File).pathSeparator
    or
    (new File).pathSeparatorChar
    and
    (new File).separator
    or
    (new File).separatorChar
    http://java.sun.com/j2se/1.4.1/docs/api/java/io/File.html

  • [SOLVED] C : How to block opening files "above" a specified directory?

    SOLVED: Used
    man 3 realpath
    Hello Archers,
    I have this one problem I've been struggling with. I kind of solved it but the solution's hackish.
    My question is how do you prevent the opening of files "above" a specified directory? The reason behind this is that I'm writing a simple sharing server, something like Xyne's quickserve, but in C and with a GTK GUI. I'm using the libmicrohttpd library.
    The program works this way: the user selects a port and a directory to be "served", and then he can access the files under the directory he chose. However, there obviously needs to be a way to prevent the user from opening files above the directory by using ".."'s for example.
    For now, I simply plan on rejecting all queries containing ".." (http://github.com/houbysoft/quickshare/ … hare.c#L59), but that's obviously very imperfect -- and you could get around it if there is a symlink in the directory for example.
    Any pointers will be very appreciated, thanks.
    Last edited by y27 (2010-03-17 02:59:14)

    tavianator wrote:
    man realpath wrote:BUGS
           The  POSIX.1-2001  standard  version of this function is broken by design, since it is impossible to
           determine a suitable size for the output buffer, resolved_path.  According to POSIX.1-2001 a  buffer
           of  size PATH_MAX suffices, but PATH_MAX need not be a defined constant, and may have to be obtained
           using pathconf(3).  And asking pathconf(3) does not really help, since, on the one hand POSIX  warns
           that  the  result  of  pathconf(3) may be huge and unsuitable for mallocing memory, and on the other
           hand pathconf(3) may return -1 to signify that PATH_MAX is not bounded.   The  resolved_path == NULL
           feature,  not  standardized  in  POSIX.1-2001,  but standardized in POSIX.1-2008, allows this design
           problem to be avoided.
    So be careful to either pass resolved_path as NULL and bite the potential unportablilty bullet, or copy canonicalize_file_name or canonicalize_filename_mode from gnulib.
    Yeah, I am passing NULL.

  • List opened file of a specific directory

    Hi, i would like to list all opened file of a specific duirectory. Maybe I could try to open all files in exclusive mode and catch the exception if the file already open. But i don't know how to open a file in exclusive mode. If you know a better way to do that you are welcome.
    Don't forget that no matter what program already open the file... it could be word, notepad... I'm working on windows, sorry :) !!!
    Thanks
    Zoop

    I also need to make the items in the list click'able so that I can press the display_name and then get the item displayed.
    I have now tried to make a procedure in the portal schema:
    as
        v_tal   number := 0;
        CURSOR tidCursor1 IS
            select DISPLAY_NAME, DESCRIPTION, TO_DATE(PUBLISH_DATE,'DD-MM-YYYY') DATO from portal.wwsbr_all_items WHERE CAID=53 and CATEGORY_ID=8992 order by ID desc;
        begin
            htp.p('<table border=0 width=100%>');
            FOR tidRec IN tidCursor1
            LOOP
                htp.p('<tr><td><b><font face="Arial" size="2" color="#014353">' || tidRec.DISPLAY_NAME || '</font></b><br><font face="Arial" size="1" color="#859CA6"> Skrásett tann ' || TO_CHAR(tidRec.DATO,'D. Mon ´YY') || '</font></td></tr><tr><td><font face="Arial" size="1" color="#014353">' || tidRec.DESCRIPTION || '</font></td></tr><tr><td> </td></tr>');
                v_tal := v_tal + 1;
                EXIT WHEN v_tal >= tal;
            END LOOP;
            htp.p('</table>');
    exception
    when others then
        null;
    end;But now I'm in doubt of how to insert a link to the item itself.
    I'm running portal 10.1.4, so it has path-names that go like this:
    htto://host.domain:port/portal/page/portal/myPageGroupName/PageName/SubPageName etc.
    How can I get an url to these items, that I can be sure will work. What table can I use for that?
    Thanks,
    Botzy
    Message was edited by:
    Botzy

  • How do open files in the "downloads" directory of Firefox (right clicking does not work)?

    In the toobar settings and I have it set to download files and programs on to my desktop-it does not. Instead all downloads go the "downloads" file and when I attempt to open these programs or files with a right-click or any other technique-it does not work.
    If at all possible, please call me to resolve this issue at (714) 392-2280. Thanks.

    Hi Milesb,
    I'd try starting Firefox in [[Safe Mode]]. If you don't have the issue while all of your add-ons, extensions, and themes are disabled, you can try adding them back in one by one until you find the culprit. The [https://support.mozilla.org/en-US/kb/Troubleshooting-extensions-themes Extensions and Themes] Knowledge base article will help.
    You might also want to take a look at [[Preferences are not saved]].
    Hopefully this helps!

  • Mavericks Calendar Open File Alarm Scripting Failure

    Hi all,
    I just recently upgraded to 10.9 from 10.8.5. Part of my daily routine is to download an excel file, gather information from that excel and, using applescript, add information from that document to an icloud calendar found in Apple Calendar, and create an alarm that opens an application after the specified event time.
    The upgrade to Mavericks did two things, first it stripped away all of the "Open File Alarms" from existing events on the icloud calendar, and now when I attempt to create new events with the below applescript, I get an error  "There was an error saving calendar data. Calendar encountered a critical error while saving to the database, and recent changes may be lost. More information may be available in the console." If I strip away the code for adding the open file alarm, the events add properly. If I manually add an open file alarm by clicking the event and selecting the necessary info, the calendar and event save fine. I've checked the applescript dictionary for Calendar in 10.9 and I don't see a difference in how Open File Alarms are handled.  Can anyone offer any suggestions? Below is the snippet of code that grabs the data from excel and loads it into the event in Calendar.
    --opens data in excel
    tell application "Microsoft Excel"
      activate
              set theDoc to "Mac HD:Automatic User:CSV File From Form:Re-Hire Form.csv" as text
      open file theDoc
      --get the outdate programmed for iCal & expiration function
              set eventFirstName to the value of range "B2" & " " as string
              set eventLastName to value of range "C2" & " out" as string
              set eventname to eventFirstName & eventLastName
              set targetDate to the value of range "I2" of active sheet
      quit
    end tell
    --add outdate events to calendar
    tell application "Calendar"
              if class of targetDate = date then
                        set newTargetDate to targetDate + (1 * days)
                        set outDate to short date string of newTargetDate
              end if
              set theoutdatecal to "Show_trans"
              tell calendar theoutdatecal
                        set deactivate_date to make new event with properties {start date:targetDate, summary:eventname, allday event:true, status:confirmed}
              end tell
              tell deactivate_date
                        make new open file alarm at end with properties {trigger interval:1440, filepath:"/Automatic User/Workflows/deactivation.app"}
              end tell
    end tell
    Thanks!

    As a side note, I have also tried unlinking and relinking the icloud account (to clear the calendar data), and creating fresh calendars "On My Mac" to the same result.

  • How can I stop the Creative Cloud directory 'crashing' when I save/open files to/from any CC app

    I'm running a Mac 10.9, bags of space and memory, no other problems with it.
    I use Creative Cloud and sync to CC using the prescribed CC method. However if I try to open or save a file to the CC directory from within any CC app, the directory opens for a split seconds and then instantly closes preventing me from completing the action. The only way to get files in and out is by dragging and dropping them from the Finder.
    Can anyone tell me how to sort this problem out.
    Thanks

    Hi D2xS-Shooter,
    I am afraid Creative Cloud desktop app is not compatible with Windows Vista. If you run into problems there are very limited resources from Adobe to assist.
    Creative Cloud is a collection of apps with various different tech specs
    http://www.adobe.com/uk/products/creativecloud/tech-specs.html
    Thanks!
    Eshant

  • I tried to open an Audacity file. I got the following error message: "Warning there is very little free disc space left on this volume. Please select another temporary directory in your preferences. How do I select another temporary directory?

    I tried to open an Audacity file. I got the following error message: "Warning there is very little free disc space left on this volume. Please select another temporary directory in your preferences. How do I select another temporary directory?

    Audacity > Preferences > Directories.  You will probably need to use an external drive as it sounds like you Mac's drive is getting too full???

  • How to view the file content from the directory? getting Error:ORA-21560

    SQL> create directory READ_LOB_DIR as 'D:\Prj\Comm\Data';
    CREATE OR REPLACE Procedure READ_FILE_LOB IS
    -- Input Directory as specified in create directory
    l_dir CONSTANT VARCHAR2(30) := 'READ_LOB_DIR';
    -- Input File which is read word by word
    l_fil CONSTANT VARCHAR2(30) := 'testfile.txt';
    -- Separator Character between words is a BLANK (ascii = 32)
    l_seb CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(32));
    -- Character at the end of the file is NEWLINE (ascii = 10)
    l_sen CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(10));
    -- Pointer to the BFILE
    l_loc BFILE;
    -- Current position in the file (file begins at position 1)
    l_pos NUMBER := 1;
    -- Amount of characters have been read
    l_sum BINARY_INTEGER := 0;
    -- Read Buffer
    l_buf VARCHAR2(500);
    -- End of the current word which will be read
    l_end NUMBER;
    -- Return value
    l_ret BOOLEAN := FALSE;
    BEGIN
    -- Mapping the physical file with the pointer to the BFILE
    l_loc := BFILENAME(l_dir, l_fil);
    -- Check if the file exists
    l_ret := DBMS_LOB.FILEEXISTS(l_loc) = 1;
    IF (l_ret) THEN
    dbms_output.put_line('File ' || l_fil || ' in Directory ' || l_dir ||
    ' exists');
    -- Open the file in READ_ONLY mode
    DBMS_LOB.OPEN(l_loc, DBMS_LOB.LOB_READONLY);
    LOOP
    -- Calculate the end of the current word
    l_end := DBMS_LOB.INSTR(l_loc, l_seb, l_pos, 1);
    -- Process end-of-file
    IF (l_end = 0) THEN
    l_end := DBMS_LOB.INSTR(l_loc, l_sen, l_pos, 1);
    l_sum := l_end - l_pos - 1;
    DBMS_LOB.READ(l_loc, l_sum, l_pos, l_buf);
    dbms_output.put_line(UTL_RAW.CAST_TO_VARCHAR2(l_buf));
    EXIT;
    END IF;
    -- Read until end-of-file
    l_sum := l_end - l_pos;
    DBMS_LOB.READ(l_loc, l_sum, l_pos, l_buf);
    dbms_output.put_line(UTL_RAW.CAST_TO_VARCHAR2(l_buf));
    l_pos := l_pos + l_sum + 1;
    END LOOP;
    DBMS_LOB.CLOSE(l_loc);
    ELSE
    dbms_output.put_line('File ' || l_fil || ' in Directory ' || l_dir ||
    ' does not exist');
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('Error:' || SQLERRM);
    DBMS_LOB.CLOSE(l_loc);
    END;
    The Text file content is...
    Copyright 1996,2001 Oracle Corporation.     All Rights Reserved
    This file contains installation instructions for installing the
    Oracle8 ODBC Driver software.
    It is divided into four parts:
    o Part I: Summary of systems supported by Oracle8 ODBC client
    software
    Lists the platforms on which the Oracle8 ODBC Client software can
    be installed.
    o Part II: Oracle8 ODBC Driver software.
    Describes the files, and installation prerequisites for the Oracle8
    ODBC driver software.
    o Part III: Exploding the kit onto your system
    Describes how to explode the kit onto your system hard drive.
    o Part IV: Installation Instructions
    Describes how to install the Oracle8 ODBC driver.
    Part I: Systems supported by the Oracle8 client software
    You can install the ODBC client software on any of the following systems:
    o Windows 2000
    o Windows NT X86
    o Windows 95
    o Windows 98
    The Oracle8 ODBC Driver provides support for ODBC connections
    from Windows 2000, Windows NT, Windows 95, and Windows 98 systems
    to Oracle databases.
    o Part II: Oracle8 ODBC Driver software.
    Refer to the following files for information about the Oracle8 ODBC Driver:
    LICENSE.TXT - Oracle8 ODBC Driver License Agreement. Read carefully
    before installing and/or using this product. Enclosed in
    your software distribution kit.
    SQORA.HLP - A Window's Help file which is the primary reference
              manual for the Oracle8 ODBC Driver.
    ODBCRelnotes.WRI - The release notes for the Oracle8 ODBC Driver
    which contains information which may have not been
    included in the Help file.
    Installation Prerequisites
    See the Oracle8 ODBC Driver release notes (ODBCRelnotes.WRI),
    for a complete list of software products required and their versions.
    Time Required
    The installation of the Oracle8 ODBC Driver takes approximately 5
    minutes. The actual time may be shorter or longer, depending upon
    your hardware configuration.
    Disk Space Required
    The Oracle8 ODBC driver installation requires approximately 2
    megabytes of available storage space. The space required depends upon
    what files you already have installed. The installation procedure
    checks to see if you have enough available disk space. If you do not,
    the installation fails.
    Part III: Exploding the Kit onto your system
    Expand the self-extracting archive file onto your hard drive.
    C:\> ORA8174.EXE
    Part IV: Installation Instructions
    Oracle8 ODBC Driver 8.1.7.4.0
    This section assumes the following:
    1. MS Windows 2000, Windows NT, Windows 95 or Windows 98 is running.
    2. Oracle Universal Installer shipping with 8.1.7 has already been
    installed on your system.
    3. Part III has been completed.
    Software fixes:
    Refer to release notes (ODBCRelnotes.wri) for a complete list of
    Software fixes.
    Installation Instructions
    Once the self-extracting archive file ORA8174.EXE has been
    exploded it will create an installable directory structure
    onto your hard drive. Run the Oracle Universal Installer from
    your local drive.
    1. On the screen "File Locations" use the "Browse" button of
    the source path to choose the file 'products.jar' from the
    folder that ORA8174.EXE was extracted to. Choose 'Next'.
    2. You will receive a warning that some of the dependencies of
    this product are not found in the staging area. This warning
    is OK. The ODBC driver depends on the Net8 Client being already
    installed on the system. Answer 'Yes' to continue.
    Oracle is a registered trademark of Oracle Corporation.
    Microsoft, MS are registered trademarks of Microsoft Corporation.
    Microsoft Windows, Windows NT, Windows 95, Windows 98 and Open Database
    Connectivity are trademarks of Microsoft Corporation.
    All other trademarks and registered trademarks are the property
    of their respective owners.
    The output was...
    File testfile.txt in Directory READ_LOB_DIR exists
    Copyright
    1996,2001
    Oracle
    Corporation.     
    All
    Rights
    Reserved
    This
    file
    contains
    installation
    instructions
    for
    installing
    the
    Oracle8
    ODBC
    Driver
    software.
    It
    is
    divided
    into
    four
    parts:
    o
    Part
    I:
    Summary
    of
    systems
    supported
    by
    Oracle8
    ODBC
    client
    Error:ORA-21560: argument 2 is null, invalid, or out of range
    I want to diplay/view as per file content format from the file under that specified directory.
    Have any other method / any help or suggestions would be really appreciated.

    I changed the code like...
    CREATE OR REPLACE Procedure READ_FILE_LOB_tmp IS
    -- Input Directory as specified in create directory
    l_dir CONSTANT VARCHAR2(30) := 'READ_LOB_DIR';
    -- Input File which is read word by word
    l_fil CONSTANT VARCHAR2(30) := 'testfile.txt';
    -- Separator Character between words is a BLANK (ascii = 32)
    l_seb CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(32));
    -- Character at the end of the file is NEWLINE (ascii = 10)
    l_sen CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(10));
    -- Pointer to the BFILE
    l_loc BFILE;
    -- Current position in the file (file begins at position 1)
    l_pos NUMBER := 1;
    -- Amount of characters have been read
    l_sum BINARY_INTEGER := 0;
    -- Read Buffer
    l_buf VARCHAR2(4000);
    -- End of the current word which will be read
    l_end NUMBER;
    -- Return value
    l_ret BOOLEAN := FALSE;
    BEGIN
    -- Mapping the physical file with the pointer to the BFILE
    l_loc := BFILENAME(l_dir, l_fil);
    -- Check if the file exists
    l_ret := DBMS_LOB.FILEEXISTS(l_loc) = 1;
    IF (l_ret) THEN
    dbms_output.put_line('File ' || l_fil || ' in Directory ' || l_dir ||
    ' exists');
    -- Open the file in READ_ONLY mode
    DBMS_LOB.OPEN(l_loc, DBMS_LOB.LOB_READONLY);
    LOOP
    -- Calculate the end of the current word
    l_end := DBMS_LOB.INSTR(l_loc, l_sen, l_pos, 1);
    -- Process end-of-file
    IF (l_end = 0) THEN
    EXIT;
    END IF;
    -- Read until end-of-file
    l_sum := l_end - l_pos;
    DBMS_LOB.READ(l_loc, l_sum, l_pos, l_buf);
    dbms_output.put_line(UTL_RAW.CAST_TO_VARCHAR2(l_buf));
    l_pos := l_pos + l_sum + 1;
    END LOOP;
    DBMS_LOB.CLOSE(l_loc);
    ELSE
    dbms_output.put_line('File ' || l_fil || ' in Directory ' || l_dir ||
    ' does not exist');
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('Error:' || SQLERRM);
    DBMS_LOB.CLOSE(l_loc);
    END;
    Now its working fine with one addtional line...
    The file content is...
    This is My Content
    This is My Content
    This is My Content
    This is My Content
    This is My Content
    But The output was...
    File testfile.txt in Directory READ_LOB_DIR exists
    This is My Content
    This is My Content
    This is My Content
    This is My Content
    This is My Content
    here, i want to delete that additonal line...?

  • How to change/set default "box selection" in download/open file menu?

    I have set downloads option in options-general to "Always ask me where to save files". This is making a menu pop-up with option "Open with" and "Save file" every time I want to download something, and thats what I want. The thing is that depending on type of file I want to download the box for "open file" is ticked for some files like .doc and .xsp files, and the box "save file" is ticked for other files like .zip files.
    Sometimes Im downloading many separate files in a short time and it is annoying to to tick "save file" and select ok instead if having "save file" already ticked and just clicking ok.
    How can I change this behavior?
    My setup:
    Firefox 26.0
    Download status bar
    All-in-one sidebar
    Example pictures:
    http://imagizer.imageshack.us/v2/800x600q90/14/sqx4.png
    http://imagizer.imageshack.us/v2/800x600q90/13/8kwa.png

    See:
    *https://support.mozilla.org/kb/change-firefox-behavior-when-open-file
    *http://kb.mozillazine.org/File_types_and_download_actions
    Current Firefox versions remember the download directory based upon the URL, so if the URL changes then the default folder may be chosen if there hasn't been selected a download folder before for that server.
    You can disable this feature to remember the download directory via the Boolean pref <b>browser.download.lastDir.savePerSite</b> on the <b>about:config</b> page.
    The browser.download.lastDir.savePerSite pref doesn't exist by default (it is a hidden pref), so you need to create it.
    Create a new <b>Boolean</b> pref with the name <b>browser.download.lastDir.savePerSite</b> and set the value to false.
    * http://kb.mozillazine.org/about:config
    You can delete the content-prefs.sqlite file in the Profile Folder to only remove settings stored in this file and keep the exceptions that are stored in permissions.sqlite that would be lost if you clear the "Site Preferences" via Clear Recent History.

  • How do I get iWeb to publish just the files to my root directory

    Hey all, when I publish my site to my hosting server via iWeb it's just copying the entire folder into my root directory instead of copying the files to the root directory. This is causing my site url to look like this: www.mysite.com/myfolder/ how do I get iWeb to publich the files in the "myfolder" to my server instead of the entire folder?

    I needed to do this while keeping ftp publishing inside iWeb, and so I developed a sneaky solution. I just figured this out, so there may be some extra steps in here. Here goes:
    Find the iWeb application on the computer you are publishing from.
    Control-Click on the application and choose "Show Package Contents".
    In the window that appears, open the folder "Contents".
    Control-Click on the folder "Resources" and choose "Get Info".
    In the window that appears, open the "Sharing and Permissions" drop-down.
    Click the lock in the lower-right corner and enter your password.
    Where it says "Read Only" across from "Everyone", click the arrows and choose "Read and Write".
    Close the "Info" window and open the "Resources" folder.
    Find the "defaultPublishConfiguration.plist" file and change the permissions (repeat steps 4-7 but with "defaultPublishConfiguration.plist" instead of the "Resources" folder).
    Open the "defaultPublishConfiguration.plist" file in TextEdit.
    Find the line "<string>/Web/Sites</string>".
    Change it to "<string>/Web</string>".
    Save and close the text file.
    Restart iWeb.
    Go to your publishing settings and enter the information for your server. Point the "Directory/Path" to the folder above your server's root web folder.
    Set "Site Name" to the name of your server's web folder.
    Make sure that none of the files in your server's web folder have the same name as those iWeb would upload.
    Select File>Publish Entire Site.
    It should now publish your site to "http://www.yourdomain.org/Home.html".
    Hope it works!
    mindoftea

  • How to save a csv file in a local directory

    I am trying to save a regular csv file in a local directory. Any suggestions of how I should approach it. And also I was wondering how I would email that csv file to multiple users

    Use a PrintWriter and a FileOutputStream. Look in javax.mail.* for API's to do mailing, or open a socket connection to a pop server and post it.
    Posting these kind of questions to "new to java" might be more appropriate...

  • How to Increase the # of Recently Opened Files in DW CS6 ???

    Can anyone please give a detailed instruction on how to increase the number of Recently Opened files in Dreamweaver CS6? I have read the forums everywhere and do not see a solution here that works. For me there is no: Menus/MM/File_RecentFiles.htm
    I mean I have a "Menus" directory but no "MM" directory inside that... also, if I create one... I still need a sample "File_RecentFiles.htm" to copy. Or maybe someone knows another solution?

    I don't have DWCS6, just DWCS4 and DWCC. When I go to Program Files(x86) > Adobe >  Adobe Dreamweaver CC (or Dreamweaver CS4) > configuration > Menus > MM > and then open the file named "File_RecentFiles.htm" at either location, this is the code...
    <!-- MENU-LOCATION=NONE -->
    <html xmlns:MMString="http://www.macromedia.com/schemes/data/string/">
    <HEAD>
    <!-- Copyright 2000, 2001, 2002, 2003, 2004, 2005 Macromedia, Inc. All rights reserved. -->
    <TITLE><MMString:loadString id="Menus/MM/File_RecentFiles/title" /></TITLE>
    <SCRIPT LANGUAGE="javascript" SRC="../../Shared/MM/Scripts/CMN/string.js"></SCRIPT>
    <SCRIPT LANGUAGE="javascript" SRC="File_RecentFiles.js"></SCRIPT>
    <SCRIPT LANGUAGE="javascript">
    <!--
    //--------------- LOCALIZEABLE GLOBALS---------------
    var MENU_RecentFile  = dw.loadString('Menus/MM/File_RecentFiles/MENU_RecentFile');
    //--------------- END LOCALIZEABLE   ---------------
    // -->  
    </SCRIPT>
    </HEAD>
    <BODY>
    </BODY>
    </HTML>
    EDIT: It appears you should definitely have this file, unless something is wrong with your installation, or perhaps you are in the wrong directory?

  • *ERROR: failed to open file " export directory path /ABAP/DATA/SAPSTR.LST

    Hello experts,
    I am doing system export.
    as per the system copy guide I follows all steps.
    when I tried for export preparation.
    I got following error in  "/tmp/sapinst_instdir/ERPEhP4/LM/COPY/DB6/EXP/CENTRAL/AS-ABAP/PREEXP/R3ldctlExport.log"
    ERROR: failed to open file "/db2/PRD/sapdata4/export_prd/ABAP/DATA/SAPSTR.LST"
    /db2/PRD/sapdata4/export_prd is my export directory.
    but I found that the "SAPSTR.LST" is not exist in the location.
    also I don't find any log regarding this error.
    how to resolve this? please guide.

    Hi Rupesh,
    In continuation of previous mail, there is keyboard problem hence spelling mistakes.
    Various possible solutions:
    Report SMIGR_CREATE_DDL has to be executed before starting export preparation.
    OR
    Download llatest kernel patch and apply them in /spmnt/<SID>/exe
    make sure download latest patch R3ldctl file and R3load from SAP Marketplace and apply them in to /sapmnt/<SID>/exe.
    Make sure export dump folder should be in local drives (in windows) or local filesystems i.e.do not  use network drives  (windows) or NFS (in case of unix).
    FInally check permission by using chmod 777 in exportdump folder in case of unix.
    Regards
    APR

  • How to increase ulimit max open files, permanently?

    I have a shell script that needs to be able to receive hundreds of incoming socket connections. The default max of open files is 256. Strangely, if I run:
    sudo ulimit -n 800
    ...ulimit -a still shows just 256 max open files. If I become root (sudo su), then I can increase the max files to 800, but that setting only remains while I'm root user.
    Anyone know how to increase the max open files setting for my regular user name, as I run scripts from the Terminal bash shell?
    ...Rene

    Wow, within 2 minutes, I realized what I had to do, so in case anyone else wonders the same, here's the solutions:
    Just edit the .bash_profile file in your home directory (create it if it's not already there), and add the line:
    ulimit -n 1024
    Now, whenever you start terminal, that process will be able to open up to 1024 files or socket connections.
    ...Rene

Maybe you are looking for

  • I Tunes "Song could not be used because file could not be found"  HELP!!

    I just updated my I Tunes software (54+ Mbyte download), and now I get an Exclamation point on all of the songs in about one half of all the albums copied to my I Tunes library. When an album is affected, all of the songs in the album will not play.

  • Itunes won't read iphone

    i udated itunes when i plugged in iphone it doesn't read "devices" on the left side like it usually does? ive restarted comp/itunes & reinstalled itunes nothing.

  • Crash on render

    Hello, I'm evaluating Speedgrade trial on Win7 x64. I cannot render in any format... when I hit render button Speedgrade crash. I tried to render a project with QT DNxHD files and also with DPX from Premiere with same results My system: Win7 x64 SP1

  • Fixing Kernal Panic? TLB Invalidation IPI Timeout

    I have an older Macbook (my wife uses it for internet and such) that I recently upgraded to Snow Leopard:   Model Name:    MacBook   Model Identifier:    MacBook2,1   Processor Name:    Intel Core 2 Duo   Processor Speed:    2 GHz   Number Of Process

  • TS1702 I downloaded an audiobook and whenm I finally found it, I cannot access it.

    I expected the audiobook to go into ibooks or even the music library, having never loaded an audiobook before.  I bought it in itunes because I always use itunes.  I have the app called "audiobooks" but did not use it yet.  When I did find the book,