Using a Forward Slash (/) in CFFILE Destination

Hi everyone,
I couldn't find this anywhere in the forums (at least not
searching for "cffile forward slash", "cffile /", or "cffile
destination") and hope I'm posting this in the correct place
(please let me know if not). I need to use a forward slash (/) in
the name of a file using cffile, but when I try to set destination
= "c:\directory\file/name.txt" cf throws an exception and tells me
that the system can't find the "c:\directory\file\" directory. Is
there a way to froce ColdFusion to interpret the forward slash as
part of the file name instead of a directory structure character?
By the way I'm using ColdFusion 6.1 Standard Edition on a Windows
box (obviously).

quote:
Originally posted by:
Newsgroup User
I could be wrong on that. I was not going on personal
experience, just
something that stuck in my mind when reading something. I
cannot find the
URL @ present, but I'm sure I read that the only actual
*illegal* character
in a *nix file name is the NULL character. But experience
trumps reading.
The best I could find is this:
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/iisbook/c03_converting _unix_file_names_and_pathnames.mspx?mfr=true.
Although that is not where I originally read it.
Adam
The above sounds right and seems to be generally correct in
practice (I'm testing by transferring files from OSX to Windows),
with the exception of the "/" character. It's possible that "/"
isn't, in fact, illegal to a *nix OS, but just isn't valid as a
file name in any applications (including those that ship wtih the
OS).
However, It's also possible (read: probable) that I have no
idea what I'm talking about. I'll see what I can find and post it
here, would be good to know as I'm sure others have run into this
(and I'm sure this won't be the last time I'm given a ridiculous
naming convention).

Similar Messages

  • How to use EWS or Powershell to rename all folders that have a forward slash in them

    We have many users that have created folders in Outlook that have forward slashes in the name (i.e. / ). They did this in Outlook/Exchange 2003. We upgraded to Outlook 2010 and this is no longer aloud so there are issues with the folders when performing
    functions such as trying to share or using IMAP, etc.
    I'm looking for a way to specify a particular user's mailbox in a script and have it traverse every folder/subfolder and check if there is a forward slash in the name. If there is a forward slash I would like to rename the folder to something like the bar
    character (i.e |) or another character that is valid.
    I had most users go through Outlook manually and clean them up. However there are a handful of users that have hundreds if not thousands of subfolders that have the forward slash in them.
    I've done extensive research on this (references to my research below) and came close in putting a script together but I just can't figure it out. Anyone have an example for this? Even if I need to specify a folder within the Inbox and have the script only
    process subfolders from this location would be acceptable since most of them are subfolders of a particular folder.
    Thank you.
    http://social.technet.microsoft.com/Forums/exchange/en-US/b24d0558-ed6a-4854-9a86-e9815741b5d0/rename-folder-example-in-ews?forum=exchangesvrdevelopment
    http://exchange-powershell.com/database-management/bulk-public-folder-rename-and-cleanup-script/
    http://unlockpowershell.wordpress.com/2010/10/14/powershell-rename-a-mailbox-folder-using-exchange-web-services-api/

    First two articles are for public folders so it won't help here as you have mailbox folders...
    http://unlockpowershell.wordpress.com/2010/10/14/powershell-rename-a-mailbox-folder-using-exchange-web-services-api/ 
    This is good starting point, you might need to change the logics around it  to search / and replace with - or someting, this might be the code change needed from that article but would suggest you to test it first.
    foreach ($folder in $ffResponse.Folders)
    if ($folder.Displayname -like “*/*”)
    Write-Output “Found / in the $mailboxName and folder name is $folder.Displayname”
    $folder.Displayname.Replace("/","-")
    $folder.Update()
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • HT203167 the path for several of my songs that i can't locate is wrong because the path uses forward slashes instead of back slashes.  Can I change this?

    several of my songs in itunes gives me the can't locate ! sign.  in going to the info for each of those songs i noticed the path to locate the file was in proper format except for the slash marks which were / instead of \ .  how can i change the slash makrs in the paths for those songs?

    thanks for the info.  if itunes is applying the wrong path i.e. - forward slashes in path instead of backward slash how will i ever access those songs I've purchased.  it won't let me download them again because it thinks they are on my computer? 

  • Index.html pages in local sub-directories will not load automatically when sub-directory name entered into address field, followed by a forward-slash

    I am in the process of designing a website-on-a-CD. In order to make things easier for my clients, I decided to organize this site into local sub-directories with an index.html page in each one. However, when I try to enter the local sub-directory name, followed by a forward-slash, the index page does not open automatically. Instead, I get a raw directory listing that includes the index.html file, and anything else that is present within it. I would like to know if there is any way to force this page to load automatically within Firefox from a local storage medium as it would load from a web-server.

    You need to use file:// as the protocol instead of C:/. The latter may never work (C:\ might).
    Where is the main HTML located ?
    Easiest if to store the images in a sub folder of the location because you can't go back via ../ beyond that root location for security reasons.
    See:
    *http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • Can't log in with valid password, can't boot from disk, can't access disk utility, in single user mode can't reset password as appears locked in caps mode with '?' for forward slash, can anyone help?

    Can't log in with valid password, can't boot from disk, can't access disk utility, in single user mode can't reset password as appears locked in caps mode with '?' for forward slash, can anyone help?

    Which keyboard layout you were using? German, French ... I suppose your layout is reset to the default: US and you are unable to find the "?" or "/" ...
    Please have a look into the keyboard viewer, to see how the layout of your keyboard is actually.
    marek

  • When typing an 'L' followed by forward slash '/' I get a weird character

    I can't figure this out. whenever I type a string of text that requires an L and forward slash together I get some weird character that resembles an 'f' like for designating a 'function' in an equation only its backwards. this occurs in terminal, like in this example: cd /usr/local/name the 'l' at the end of local and the forward slash become one character. I can't duplicate this character any other time, just when l/ are in a string. Any ideas? I get this in terminal and entourage (only in plain text mode - html emails the character doesn't show) mainly.

    What you are seeing is a diacritic of an L with a line through it. It does the same for o/. You are probably using a font like Palantino, Hoefler, Chicago, or New York.
    I don’t use Terminal so I don’t know how to change it in that application, but in TextEdit
    1. open the Font panel (Format/Fonts/Show Fonts, or Command-t)
    2. from the Action menu (small gear shape in lower left corner) choose Typography
    3. in the Typography window select the Diacritics section (if there is no Diacritics, select in the Fonts panel one of the fonts mentioned above, like Chicago and the Typography window will change to show a Diacritics panel)
    4. click Don’t Compose Diacritics button
    I couldn’t find a Show Fonts command in Terminal, but now that you know the procedure, maybe you can figure it out.

  • Folders with forward slashes in the name not appearing in Mail.app Exchange

    Has anybody else seen this? For folders with forward slashes in the name, such as "Meetings/Events", the folder shows up in Outlook Web Access and over Exchange in Entourage 2008, but not Exchange over IMAP with Mail.app in Snow Leopard. The folder shows up once I remove the forward slashes, such as "Meetings Events" or "Meetings-Events" or "Meetings and Events".
    Is this a known issue, and is there a fix besides renaming the folders?

    In Unix the forward slash is an illegal character for a filename. In general you should avoid using it as the forward slash is used in path names such as /Folder/File. Avoid using the colon as well because it's commonly used as part of a disk identifier in OS X.
    This is not any different than avoiding the backslash in Windows filenames.

  • Underscore randomly replaces forward slash in topic file names and topic titles

    The problem I'm seeing is similar to the discussion at http://forums.adobe.com/message/2564701 which dealt with random insertion of underscores in topic titles. That problem seemed restricted to underscores replacing spaces in Topic File names and was solved (for some people at least) by deselecting the setting   "Tools > Options > General > Use underscores in filenames." Playing with that setting has not worked for me when it comes to unwanted replacement of forward slashes.
    I'm running RoboHelp 9 and linking from FrameMaker 10. The unwanted underscores are seen in (1) the RH project and (2) the help output:
    (1) In RH project in some topic titles like this:
    I want to keep the forward slash. The upper topic title is wrong and the bottom one is correct.
    (2) In AIR Help output: search results and in the tab that appears above the breadcrumbs in the main right pane.
    I cant change the titles prior to generating output because, as Matt Sullivan wrote in the similar discussion, "...for topics created from linked FrameMaker 9 files, the Topic Title is not editable from the Topic Properties. If it was, at least I could change the offending titles prior to final generation of output. (though the titles would revert on the next update of the FrameMaker source content)."
    I've double-checked the source FrameMaker documents and I can find no difference between Headings in which the forward slash is retained (desired) and those in which the forward slash is replaced by an underscore (unwanted).  Has anyone else seen this?
    Thanks,
    Matt

    Isn't the issue here that RH is creating filenames AND topic titles based on the FM title. Because of the slash it is saying that is an illegal character it changes the filename and the title in RH is based on that, hence both change.
    I don't know if that can be changed but now you can test to see if that is what is happening.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Problem importing a CSV file with forward slashes in a column

    I have an Excel csv file of a product database (contains about 6500 products) that contains product codes with forward slahes such as 499/1, 499/3, 499/5.
    These are different sizes of a product and as such have different prices etc.
    When I import the file into Numbers these numbers appear as 499, 166 1/3, and 99 4/5 respectively.
    What seems to be happening is that Numbers is interpreting the forward slash (/) as a divide by command and subsequently performing a calculation on that number on import and hence totally changing the value of the cell so that it is impossible to look up the price related to a product as the product code no longer exists.
    Excel can import these files with no problems, why can't Numbers treat each cell as text and leave it alone on import.
    Is there any way round this or do I have to revert to using Excel for the import of csv files.
    Thanks
    Steve

    I know I'm a bit(!) late (a year) coming to this party, but there is a simple solution, that worked for me, enclose the field in double quotes, and add a single quote before the number:
    Instead of
    499/1,"Super Widget 3",12.34
    do
    "'499/1","Super Widget 3",12.34
    In fact the single (unclosed) quote without double-quotes works as well:
    '499/1,"Super Widget 3",12.34
    I've always found it better to enclose strings with double quotes. This works on loading the file into Mac Numbers and should work with Excel too if that helps. It opens with OpenOffice 4 on the Mac too - if you select "comma" in the "Separated by" checkbox
    I can't remember where I picked this info up....
    Hope this helps someone, albeit late.
    Andy

  • Escape / (Forward Slash) in SQL*Plus

    DB: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for IBM/AIX RISC System/6000: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    I am running following anonymous block and it's giving error. It's because SQL Plus is considering forward slash (/) in variable "a" assignment as block terminator. How to escape that? The use of following block is to store test case in Database. This is simple example real test cases are complex and involve print after /.
    DECLARE
      A   varchar2(1024) := NULL;
    BEGIN
      A := 'set serveroutput on;
    BEGIN
      INSERT INTO table_name
           VALUES (5067);
    END ;
        INSERT INTO x VALUES (A) ;
           COMMIT ;
    END ;
    /Output
    SQL> DECLARE
      2    A   varchar2(1024) := NULL;
      3  BEGIN
      4    A := 'set serveroutput on;
      5  BEGIN
      6    INSERT INTO table_name
      7         VALUES (5067);
      8  END ;
      9  /
    ERROR:
    ORA-01756: quoted string not properly terminated
    SQL>
    SQL> ' ;
    SP2-0042: unknown command "' " - rest of line ignored.
    SQL>     INSERT INTO x VALUES (A) ;
        INSERT INTO x VALUES (A)
    ERROR at line 1:
    ORA-00984: column not allowed here
    SQL>
    SQL>        COMMIT ;
    Commit complete.
    SQL> END ;
    SP2-0042: unknown command "END " - rest of line ignored.
    SQL> /
    Commit complete.
    SQL> Running same block from Toad works fine.
    Please help!
    Thank You!
    Arpit

    Welcome to the forums!
    You may need to escape the / character. The default escape character is \
    SQL > DECLARE
      2          A VARCHAR2(1024);
      3  BEGIN
      4          A := '
      5                  BEGIN
      6                          INSERT INTO table_name VALUES (5067);
      7                  END ;
      8                  /
    ERROR:
    ORA-01756: quoted string not properly terminated
    SQL >
    SQL > ' ;
    SP2-0042: unknown command "' " - rest of line ignored.
    SQL > END;
    SP2-0042: unknown command "END" - rest of line ignored.
    SQL > /
    ERROR:
    ORA-01756: quoted string not properly terminated
    SQL >
    SQL >
    SQL > DECLARE
      2          A VARCHAR2(1024);
      3  BEGIN
      4          A := '
      5                  BEGIN
      6                          INSERT INTO table_name VALUES (5067);
      7                  END ;
      8                  \/
      9
    10  ' ;
    11  END;
    12  /
    PL/SQL procedure successfully completed.
            Hope this helps!
    Edited by: Centinul on Jan 28, 2011 1:02 PM

  • File Open Dialogue has forward slash and starts up on A: drive.

    2.1.1.64
    This is minor but bothers me each time I click file open.
    Click File -> Open
    File open dialogue appears.
    SQL Developer tells me my A: drive is not accessabile after my A: hard drive makes a grinding noise. I almost forgot that little bit of info since I have not used the A: drive since around the year 2000. :)
    SQL Developer puts a "/" forward slash in the file name box. Why?
    I have to press OK.
    Then navigate to the C: drive or another drive.
    Why does SQL developer want to open the A: drive and not go to a more likely drive like say C:? Then there would be no message and no having to click OK? My recommendation is that SQL Developer File Open dialogue start up on the C: drive or at least just show the directory structure and not make me click anything. Remove the forward slash from the filename field also.

    At first this seemed to work. SQLDev would startup and open a file for me from the r:\ drive in its own tab that I was previously editing in a prior session. File->open would startup on the R:\ drive. However, with no file in its own tab on startup no matter what AddVMOption I put in the sqldeveloper.conf file from the link provided SQLDev starts up on the a:\ drive? Changing the "start in" dir on the icon on my desktop had no affect either.

  • ADAM, LDAPContext Container Name with Forward Slash

    Hi,
    I am having trouble writing some Java code, which will create a container/folder in ADAM, where the container name and distinughed name contain a forward slash.
    e.g.
    cn=test/test
    dn=CN=test/test,CN=TestStore,DC=MyCompany,DC=COM
    LdapContext _ctx = getNewContext(valid_userName, valid_userName, valid_userName);
      // uses InitialLdapContext under the hood
    String containerDN = "dn=CN=test/test,CN=TestStore,DC=MyCompany,DC=COM"
    _ctx.createSubcontext(containerDN, attrs); // assume attrs is valid javax.naming.directory.AttributesI am struggling to escpae the forward slash from the Java String object, and yet allow the InitialLdapContext to create the container with the name.
    From the ADAM Adsi Edit application, I can create folders with forward slashes, so I presume the process can be done from code as well.
    Many thanks in advance ...

    Create a Name rather than passing a String.

  • EA2 - Export Wizard - No forward slash after package spec and body in sql

    I exported a schema with the export wizard. My stand alone functions and sql types in the script have have a forward slash after the "end;" statement Great. However, package specs and body create statements do not have a forward slash after the "end;" and I believe they also should have this.

    This appears to be a DB issue as we are just using DBMS_METADATA to generate the ddl. Please test manually using worksheet or sqlplus
    exec DBMS_METADATA.SET_TRANSFORM_PARAM( DBMS_METADATA.SESSION_TRANSFORM, 'SQLTERMINATOR' , TRUE );
    select dbms_metadata.get_ddl('PACKAGE', 'PACKAGE_NAME','SCHEMA') from dual;
    I looked through the DB bugs briefly and noticed a few on other objects that were fixed in 9.2.0.6 but I didn't see one for Packages...
    This is not something I would fix in SQL Developer as the core issue is with DBMS_MEATADATA and your version of the DB.
    As this is fixed in 10 I'm sure you can work with support and request a backport if it's not a currently available patch.

  • SQL * Plus - forward slash usage

    I have package spec and body in separate files, i have 2 packages, so i have 4 files in total.
    I want to install the 2 packages using "SQL * Plus", but how the install-script should look like. I don't understand how and where to use "sql * plus" command "forward-slash" "/".
    Should it be like this:
    spec_file_1
    body_file_1
    spec_file_1
    body_file_1
    Or how the "/" should be used? Only ones at the end? I don't understand.

    You can write a single file this way:
    create or replace package a is
    end;
    create or replace package body a is
    end;
    create or replace package b is
    end;
    create or replace package body b is
    end;
    /And then run it in sqlplus this way:
    SQL >@a.sqlor multiple files this way:
    create or replace package a is
    end;
    create or replace package body a is
    end;
    create or replace package b is
    end;
    create or replace package body b is
    end;
    /And then run them in sqlplus this way:
    SQL >@a.sql
    SQL >@b.sql
    SQL >@c.sql
    SQL >@d.sqlOr write a file e that runs a,b,c,d this way:
    @a.sql
    @b.sql
    @c.sql
    @d.sqlAnd then run it in sqlplus this way:
    SQL >@e.sqlIn the previous examples the slash is always at the end of each CREATE...END;
    This is not compulsory. In the last example you could remove the slashes from the files a,b,c,d and write the file e this way:
    @a.sql
    @b.sql
    @c.sql
    @d.sql
    /This works anyway.
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/23/la-forza-del-foglio-di-calcolo-in-una-query-la-clausola-model/]
    Edited by: Massimo Ruocchio on Jan 26, 2010 9:20 AM
    typos

  • How to include /(Forward slash) in my regular expression

    Hai All,
    I am having a regular expression which should accept only A-Z,0-9, _(underscore) and .(period) .
    <property name="patterns" value="[A-Z0-9\\._]*" />
    Now i need to add /(Forward slash) to this expression.
    <property name="patterns" value="[A-Z0-9\\._/]*" />
    But when i add it it is accepting both Foward slash and Backward slash.
    Can someone guide me such that it accepts only A-Z, 0-9, Underscore, period and a Forward slash(/).
    Thx in advance..

    sabre150 wrote:
    Your regex without the / was accepting \ since '.' does not need to be escaped inside a character class. Just remove the \\ .And if you really did need to escape the dot, you would only have to use one backslash, not two: <property name="patterns" value="[A-Z0-9\._/]*" /> In Java source code you would have to use two backslashes because one of them gets consumed by the Java compiler. But this is obviously an XML file, so that rule doesn't apply. But, as Sabre pointed out, you don't need a backslash there at all: <property name="patterns" value="[A-Z0-9._/]*" />

Maybe you are looking for

  • HP LASERJET P2015 PRINTER ISSUE

    I have a P2015 shared printer installed in my office.The pinter works fine for a day but when i come the next day i am unable to print .Then i have to connect to the printer through the network again,only then i am able to  print on it.The error show

  • Syncing contacts from iPhone 3G to 3GS

    I recently purchased a 3GS model of the iPhone, and was transfering my contacts from a 3G iPhone. My contacts swapped over correctly, but when I upgraded to 4.0 software, my contacts were deleted. I thought that they might refresh, but they have yet

  • Create index intermittent deadlock problem

    Hi. Apologies but I'm a newbie to Oracle Text. I have a batch process which occasionally (twice so far) falls over with: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: Oracle Text error: DRG-50857: oracle error in dr

  • SWO_OBJTYPE_AFTER_IMPORT error in XPRA phase.

    Hi All, getting below error while applying the abap patch SAPKA71101 in XPRA Phase.    Post-import method SWO_OBJTYPE_AFTER_IMPORT started for SOBJ L, date and time: 20100728183538    Object type 'BUS7030' generated successfully    Object type 'EMMAJ

  • I can't open PDFs without signing up to "special offers"!?

    Hi guys! I've got a weird problem with my iPad. I "updated" it to iOs7 a while ago, and somehow managed to delete all of my apps. I downloaded them all again, including Quickoffice, which used to sync up to my Dropbox account and let me share files w