Script file name problem

hi,
when i try to run script in a file i got an error.
i tried following command.
@D:\Database Architecture\Scripts\test.sql
It throw error as D:\Database.sql file not found.
I'm facing this problem when i use Edit command and SQLPlus utility.
how to solve this problem?
I want to run files which are stored in directories whose names are containing embedded spaces.
Thanks.

You have to enclose the string in double quotes.
Example:
SQL> @c:joelperez/hi bye/joel.sql
SP2-0310: unable to open file "c:joelperez/hi.sql"
SQL>
SQL> @"c:joelperez/hi bye/joel.sql"
SYSDATE
17/02/04
SQL>
Joel Pérez
http://otn.oracle.com/experts

Similar Messages

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • How can I see the current script file name in Vision Builder

    I would like to not have to remember which script file I have open. Is that displayed somewhere?

    Brian,
    I have been looking over Vision Builder 6.1, and from what I can tell, the name of the file that you are working on is not displayed on the screen, and there does not appear to be a way to get it to display there.
    This seems like a very worthwhile feature to add, and I definitely agree that it would be useful. You may want to consider filing a Product Suggestion by using the Product Suggestion Center (PSC) that is linked below:
    Product Suggestion Center
    The PSC links directly into our R&D group's suggestion database, and any suggestions entered would be reviewed by the R&D team.
    Regards,
    Jed R.
    Applications Engineer
    National Instruments

  • Max 255 characters in MS Office file name problem

    When saving files via WebDAV to KM folders within collaboration rooms we often hit this limit of 255 characters that Office documents allow for file names (218 for MS Excel).
    Because the complete webDAV URL to portal is made up of server name + a lot of portal stuff, the number of characters left for subcatalogs and document within each room is very limited.
    Has anyone got a good solution to this problem?
    WebDAV url example:
    oslpep.agra.int:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/room_extensions/
    cm_stores/documents/workspaces/303c5e8a-cb16-2810-9aa7-caaf71de197/subfolder/document.doc
    Error message in Excel when saving:
    "The file could not be accessed. Try one of the following:
    - Make sure the specified folder exists.
    - Make sure the folder that contains the file is not read-only.
    - Make sure the file name does not contain any of the following characters: < > ? [ ] : | *.
    - Make sure the file/path name doesn't contain more than 218 characters."

    Julian, Robert
    Thanks for help so far. I have now upgraded to SP2 and the situation is the same.
    As far as I see the Cumulative security update is specified to solve IE-related problems. The problem with WebDAV editing of files in portal does as such not involve opening Office documents through IE, but rather editing these in any Office program and saving directly to portal through a mapped network place (a KM folder).
    I still cannot see that Microsoft has published anything about a fix for this problem.
    About error when opening document: http://support.microsoft.com/default.aspx?scid=kb;en-us;325573
    About error when saving document: http://support.microsoft.com/default.aspx?scid=kb;en-us;213983
    Is there something I have overlooked?
    Regards
    Henning

  • BLOB unicode file name problem

    Hi,
           I am trying to upload pdf file into SecureLOB column, I am getting error when I try to upload file name/directory  with unicode char, for other files/directory it works fine.
    w_src_loc := bfilename('LDIR', in_file_name);
      dbms_lob.open(w_src_loc, dbms_lob.lob_readonly);
    dbms_lob.open gives file not found error in oracle 11g,
    Can any one guide me what may be the problem?
    DB's character set:
    NLS_CHARACTERSET
    AL32UTF8
    NLS_NCHAR_CHARACTERSET
    AL16UTF16
    P.S. Oracle is running in Windows and unicode (chinese) enabled OS.
    -Raj

    > I am getting error when I try to upload file name/directory  with unicode char,
    ERROR? What Error?
    I do not see any error.
    my car won't go
    tell me how to make my car go.
    How do I ask a question on the forums?
    https://forums.oracle.com/message/9362002#9362002

  • Original file name problem

    Hi all,
    Got this wierd problem with DMS.
    I am opening (in change mode) an excel document stored in our DMS for editting, then I check it back in again. When I check it back in again and save, the orignal file name is getting the temp folder name appended to it!
    In CV02n I have setup a Temp working directory for files, e.g. N:\Mydocs. Lets say my document is called "Requirements.xlsx" , everytime I open the document, make some changes and check it back in again SAP is adding the temp directory name to the original file name... after 3 or 4 check out/ins the file name is now "MydocsMydocsMydocsMydocsRequirements.xlsx"!!!
    How do I stop SAP appending the folder name to the original file name?

    Doh!
    I've just figured out my own problem.
    The temp working directory setup in CV02n did not have a "\" on the end of the path... so SAP thinks it's a name not a location.
    changing the Temp working directory to N:\Mydocs\ solved the problem.

  • Path and file name problem when I want to download files from html

    Hi all,
    I want to write a small program to allow users download files from jsp file
    but the following files don't work .
    <%@ page language="java" import="java.net.*,java.io.*"%>
    <%@ page import ="java.util.*"%>
    <%
    try
    String SContent = request.getParameter("click");
    String SDocName = "temp.doc"; //  out put file File Name
    ServletOutputStream stream= response.getOutputStream(); // Getting ServletOutputStream
    response.setContentType("application/msword"); // Setting content type
    response.setHeader("Content-disposition","attachment;filename=\"" +SDocName+"\""); // To pop dialog box
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(SContent));
    int c;
    while ((c = in.read()) != -1){
               stream.write(c);
    in.close();
    stream.flush();
    catch(final IOException e)
    System.out.println ( "IOException." );
    catch(Exception e1)
    System.out.println ( "Exception." );
    %>I am so confuse, what is the path and file name I sould give ? for example my click should equal to http://******/Test/display.jsp?click=00-1

    Hi all,
    I got error at
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
         org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:599)
    if I want ot download file from html file.
    String SContent = request.getParameter("click");
    if I hard code like follow it work fine.
    String SContent ="C:/Project Coding.doc";
    what mistake I make.
    Thank you!

  • Acrobat 7.1 OS: XP PRINT TO PDF file name problems

    Here is all the info.
    when i goto file print and select Adobe pdf as the printer.
    The window shows up titled: Save PDF File AS
    The current "Save in" window is Desktop / My Documents / CATALOG /     CATALOG PDF VERSION / PDF PORTFOLIO VERSION
    The preloaded "File name" is: C:\Documents and Settings\Chip\My     Documents\2009 - A PO\09 - AH - Ellouise Abbott, Houston\09 - AD -     5846, Lloyd, IBB, j-227\INDEX-glass,mica,linen.pdf
    The preloaded "Save as type" is: PDF files (*.PDF)
    I am sending out this pdf to a lot of customers  and I do not want them to see the preloaded information for file name.   Is this only happening because it is on my computer.  OR when i send the  same pdf to a different customer will they see the preloaded file name   "C:\Documents and Settings\Chip\My     Documents\2009 - A PO\09 - AH - Ellouise Abbott, Houston\09 - AD -     5846, Lloyd, IBB, j-227\INDEX-glass,mica,linen.pdf"
    Below is a screenshot to give you a better idea:
    Message was edited by: axlrose13

    this question is for a different machine running acrobat 9 on xp.  its a completly different question regarding the file names if they will show up on another persons computer if we send them the pdf file.

  • "Invalid output file name" problem

    Hi
    I have installed FMLE in a Windows Vista Home Premium SP2 x64 machine. When I run the GUI version with any preset (using Medium bandwidth 300kbps VP6) and selecting "Save to file" "C:\temp\sample.flv" I get this error:
    Invalid output file name
    Filename cannot be invalid and absolute path of the file cannot exceed 255 characters.
    The folder C:\temp DOES exist. I am running from my administrator (only) account. FMLE works just fine in my Mac but for some reason I need to set up a Windows machine.
    What can be wrong?
    Thanks

    Both. I did the same thing I did in my Mac (in the Mac it works, in Windows it does not work):
    1) open the GUI
    2) set up the options I want (e.g. save to file X in folder Y)
    3) save options as an XML profile
    4) use the saved profile in the /p parameter of the command line
    That did not work. So I just went into the GUI and:
    1) set up the options I want (e.g. save to file X in folder Y)
    2) Click START
    That did not work either. I get the "invalid output file name" in both situations. And my file is name "sample.flv". I even tried without specifying a drive (e.g. "sample.flv" instead of "c:\folder\sample.flv"). The folder has no invalid characters and does exist.

  • UPPER and lower case file names problem on CD

    Hello,
    I have a CD which contains, in web page format, the contents of a bibliographical work formerly published on paper. The link codes in all these web pages use lower case filenames. Unfortunately, the files on the disk are a mix with some of them in uppercase, i.e. AD4.HTM and some in lower case, i.e. intro.htm.
    This disk used to work, under OS 9 in Internet Explorer. But now, under OS X 10.4.11 and using either Safari or Firefox, I'm getting Page Not Found errors whenever the filename is uppercase.
    I could copy all the files off the CD to my hard drive and run a renamer utility to change all of them to lower case. But I have another CD from the same publisher -- same problem -- and may get more, and I don't particularly want all those files on my drive anyway. There's a lot of them!
    Is there any kind of setting -- perhaps accessible through one of those arcane terminal commands for setting hidden preferences -- which would allow me to tell the Finder (or maybe Safari or Firefox) to not care about the case of the filenames?
    Note that I can change the case of a local HTML file and either browser can still find it. This is only happening on the CD.
    TIA
    Rob

    I don't think I'll try that one. The most recent update of SheepShaver was slightly over 2 years ago, which indicates to me that the developer is busy doing other things.
    I'm very conservative in what I'll install into my system, and old, one-developer software does not fit my standards.
    If no other answer comes up, I think I'll copy the files to my hard drive, rename them, then write out a CD with the renamed files and use that one instead. Of course the original CD may contain copy protection features which will prevent this -- I haven't tried it yet.
    Message was edited by: Rob Stevenson

  • Save as PDF - default file name problem

    When I try to Save as PDF from the print dialog box (in Mail, Safari, iWork, etc.) the filename and title both default to:
    286>756<6<29
    Does anyone have any ideas why the fields are not being populated with the correct information?

    Then, you might have a mucked up font database. Reboot into safe mode and then reboot normally. That will clear those databases. Note, however, it'll will also clear any font collections you've made with Font Book. Once that's done, launch Font Book, select all fonts, and validate them, resolving all duplicates. If this doesn't fix the problem, then I have nothing else to offer.

  • File Names in iPhoto 6

    Filenames in iPhoto
    If I want to use iPhoto to import pictures from my digital camera, I can chose file names with sequential numbering. If I do not want to do this from the beginning I can batch rename the files afterwards.
    My question now is: How can I get iPhoto to actually rename the picture data stored in the folder "originals".
    The Background of my question is: If I want to upload pictures to oder reprints via the web, it is hard for me to find pictures that are named DSC0003.... and so on. Or is there a way I can use different services from the Kodak online print order system implemented in iPhoto?
    I hope soemone has got an idea. Thank you so far!
    Macbook   Mac OS X (10.4.7)  

    As JMEH pointed out you have to either import and then do an export after renaming in iPhoto. I manually upload to a folder on the Desktop and then use R-Name to batch, sequentially rename the files before importing. I also date and name the folder so the roll title will have the date and brief description of the contents. A couple of extra steps but you will avoid duplicate file name problems later on and be able to more easily identify files. One naming scheme is to use the date followed by the identifier like: YYYYMMDD-title-01.jpg, etc. That would translate to 200608008-my pictures-01.jpt. This will allow very good chronological sorting and searching. Works for me. Do you Twango?

  • Can I script the changing of creation date, using the file name?

    Normally people are doing this in reverse, but let me paint the picture.
    I pulled 204 video files from an old HDD based JVC camera.  JVC records in .MOD format which iPhoto won't import.  I imported them into iMovie just fine, and iMovie even set the file name to clip-2007-11-04 04;42;29.mov which is great, but it now has a new creation date of whatever date I imported it.  Which then causes problem when I want the videos stored in iPhoto and sorted appropriately by creation date.
    I've used the application "A Better Finder Attributes 5" to individually edit the creation and modify, but I'm sure I don't want to do this 203 more times, as you can't just type in the date and time, you have to type in each part of the date/time, or select it on a calendar.
    I've used the application "Name Changer" to batch convert the file names to the format YYYYMMDDhhmm which would be helpful if I were going to use the terminal command touch -t, but again I don't want to have to type it in 203 more times, plus drag and drop the file into finder to populate the location.
    Now, if I were more handy with automator, or maybe some (any) scripting language this would be easy peasy.  I'd batch rename all the files to the YYYYMMDDhhmm.mov and then have a script that just took the file name, passed that to touch -t along with the file location, and a few seconds later, they would all be done!
    Anybody have any suggestions to how I can do this, and tips to what commands to use or ANY advice?  I'm more than happy to RTFM, but I have no idea which manual to read!
    Thanks

    If your file names are precisely as you have written, this script will do what you want.
    Copy the script into an AppleScript Editor document, select one or more files in a Finder window, return to the AS Editor and press Run.  Note: you will need to provide your password when the script runs.
    Make sure you have a backup of any files you are working on (try using duplicates first, perhaps). The script has no error handling.
    tell application "Finder"
              set FileList to selection
              repeat with theFile in FileList
                        set fileName to name of theFile
                        set filePath to quoted form of (POSIX path of (theFile as alias))
                        set crYear to text 6 thru 9 of fileName
                        set crMonth to text 11 thru 12 of fileName
                        set crDay to text 14 thru 15 of fileName
                        set crHour to text 17 thru 18 of fileName
                        set crMins to text 20 thru 21 of fileName
                        set crDate to crYear & crMonth & crDay & crHour & crMins
                        set shellString to "touch -t " & crDate & " " & filePath
      do shell script shellString with administrator privileges
              end repeat
    end tell

  • Add file name script

    I have a script for adding the file name as a text layer in PS. This script called "AddFileName02.js" worked by placing the file in the scripts folder on the hard drive. This script worked for PS CS2 (and I think PS CS3). This script could then be accessed by <file><automate><scripts>
    Now that I have PS CS5 I have tried to place this script into the same place in PS CS5, but it does not appear. (I restarted PS) As I see it there could be two possible problems.
    1 The script has a .js extension and all other scripts in PS CS5 have a .jsx extention. So a newer version may be needed.
    2 I have placed the script in the wrong folder.
    Can anyone help?

    Just rename ist with the jsx-suffix and place it in the Presets > Scripts-folder.
    If that does not work you could try the Photoshop Scripting Forum, though some of the regulars also do drop by in this Forum.

  • How to insert the file name to the start and the end of a SQL file by a powershell script

    I just began to learn powershell script and I have a problem that I cannot figure out. I have a lot of .sql files. I need to insert its file name to the beginning of the file (After USE statement) and the end of the file (before the last END statement). Is
    there anybody knowing how to do this?
    Thanks so much
    Regards

    Actually, I want to add a insert SQL statement to the beginning of the file and the end of the file. Only the file name is a variable and different among
    different files. All the other sql statements are the same and can be hard coded. Hopefully it helps –
    The problem I think is that I want to add the same thing (except the file name) to hundreds of sql files and only the file name is different. I do not want
    to add it manually and want to use a script to add it – 

Maybe you are looking for

  • Accessible PDFs from InDesign CS3 and Acrobat Pro 8

    Is there a good website or book that explains how to create an "accessible" PDF with text and images (no intaractivity or special fields to enter information)? Maybe a book for non-programmers. I find a lot of general information and it always states

  • Logic audio unit bridge unresponsive/gui doesn't show up properly

    Hi there, having a problem running some 32 bit plugins while running logic in 64 bit mode. For those who are familiar with the Audio Unit bridge, when clicking on a 32 bit plug-in it brings up this grey window which prompts another click to bring up

  • Loud (I mean LOUD) Beep

    My MBP has done some strange things from time to time with the speakers... The odd loud pop... some crackling... I just chalked it up to persnickity Mac... However, I was just playing a little CIV IV, when I got the scare of my life. A LOUD (and I ca

  • SRW.SET_PDF_ACTION reference to directory Names with spaces

    Hello, I'm trying to create a hyperlink that will spawn a new browser from a PDF report by using the SRW.SET_PDF_ACTION function; however this is not working when my directory structure has spaces in the names SRW.SET_PDF_ACTION('C:\"Program Files"\"

  • Runtime error! - contact application support team for info

    m using hp pavillon dv6 for last 2 years never before encounter such problem .. 1st i cannot access n e of files it say access denied though m the adminstrator and only user, so i decided to restore it to factory default setting but cant do it, in sy