CFDIRECTORY vs files with # in the name
Okay, have you ever had one of those weeks where it seems
that everything that once worked has now decided to bomb?
For instance, I am using cfdirectory to list a handful of
files from a particular directory (you may have seen my post from a
few days ago struggling with that one!). This is a very simple
task, however I am finding that when the filename has a # in it CF
goes nuts and crops the returned NAME variable from the # to the
end. So an image named:
this_is_an_#_in_my_image.jpg
would be returned as:
this_is_an_
Is there a way around this without renaming all the
files?
Uh oh. Sounds like you got yourself a Red Hat Enterprise
Linux ColdFusion glitch on your hand. I've tried a number of
different attempts using my CF configuration (CFMX7, WINXP) and
everything works fine with the <cfdirectory> dump. Make sure
you bug report this with Adobe. In the meantime, is there any way
you can *influence* the filenaming convention? Otherwise, you might
have to find a work-around without using the <cfdirectory>
tag. Maybe create a custom Java class that pulls up the directory
info and returns it to CF?
Similar Messages
-
HP Officejet 4500 - printing files with íáýžřčšě in the name
Hello, there is a problem with printing of files with Central European letters in the name. If the filename contains éíáýžřčšě (for example avízo, zpráva etc) , it is sent to the printer, but it stays in the query and is not printed. Everytime we need to rename th file and send again. (it took me pretty long time to recognize, what is the problem. Can I solve it somehow?
Second isssue: printer is not switched to sleeping mode automatically, and it lights for all night. Why, how to set the time to sleep?Hopefully I can be of assistance! Do you know the IP address of the printer that the Airport is assigning to it? Here is a little document from Apple Support about your connection: How to Connect a Wireless Printer to your Airport Network. I am not too fluent in Apple Airports but I see nobody has tried to help yet. I thought that one would connect the printer to the Airport via USB and then other devices could see it via wireless. That may not be the case here so I want to make sure I understand completely how you have the printer connected to the Airport. Are you using the Wireless Setup Wizard on the printer to connect to the Airport or are you connected to the Airport with a wire?
Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
When a solution is found please mark the post that solves your issue.
Every problem has a solution! -
Can the filter find files with "/" in the name?
I'm importing a lot of files into Aperture. Several files, once imported don't seem to be there because I can't find them when I type in the name of the file. I just found some that have a character in the name :"/". If I type in other parts of the name the file shows up, for instance: "preschool/Kindergarten.tif" ; if I use just "preschool" the file is there. So the file is part of the Aperture library. If I change the names of the files outside of Aperture they won't be found, correct? Since I can't find them within Aperture there is no way to change them within Aperture, correct?
Better not use any characters in filenames, that have a special meaning in the unix operating system. The "/" character is a separator in the paths to files. It indicates a subfolder. For the unix shell "preschool/Kindergarten.tif" would mean the file "Kindergarten.tif" in the folder "preschool".For filenames I'd stick to alphanumerical characters for filenames. It is safer.
If I change the names of the files outside of Aperture they won't be found, correct?
That is right. Once imported, don't change the filenames in the Finder.
Since I can't find them within Aperture there is no way to change them within Aperture, correct?
To find your files, you could search for the date or browse the events.
If you can find a file, you can change its filename in Aperture by using the command "Metadata > Batch change". You can change the version name and check the flag "Apply to original file".
I would also refrain from using the following characters in filenames, even if they are les critical:
* ^ \ ; ˜ { } -
[SOLVED]cURL got problem uploading file with "[]" in the name
$ curl -# -iv -u username:passwd -T '[gg].png' 'ftp://ftp.liondrive.com:2221'
curl: (3) [globbing] error: bad range specification after pos 2
When I rename [gg].png to gg.png, it's all just fine.
Anybody encountered same thing?
What's the problem?
Last edited by lolilolicon (2009-06-24 07:18:05)OK, I got it
The problem is caused by curl attempting to do globbing on urls that contain []{}. The best fix would probably be for hpodder to invoke curl with --globoff.
....Ha, should have googled the error message before posting. Sorry.
Edit
another woraround is use escape...
curl -# -iv -u username:passwd -T '\[gg\].png' 'ftp://ftp.liondrive.com:2221'
Last edited by lolilolicon (2009-06-24 07:26:43) -
How to delete the file with space in name
Hi
I want to delete the file "test ex.txt" file.
i run the following command in command prompt.i can delete the file successfully.
/bin/rm -f /mnt/"test ex.txt"
I want to run the command from java.So i am using the following code
String cmd = "/bin/rm -f /mnt/\"test ex.txt\"";
Runtime rt = Runtime.getRuntime();
process = rt.exec(cmd);
The file was not deleted.
How to delete the file with space in name?
Help meUse the form of exec that takes an array of command + args.
arr[0] = "/bin/rm"
arr[1] = "-f"
arr[2] = "/home/me/some directory with spaces";Or use ProcessBuilder, which is the preferred replacement for Runtime.exec, and which Runtime.exec calls. -
SPD 2010 - How to know if a file with a given name already exists in a document library
Hi,
I've created a workflow using SPD. One of the steps in there is changing the name of the document to a clean name. This workflow fails if a document with this same name already exists in my document library. Is there a way to check in a SPD workflow if
a document with a given name already exists in my document library ?
Marc NemegeerHi,
According to your post, my understanding is that you wanted to know if a file with a given name already exists in a document library.
You can use a SharePoint Designer workflow to achive it.
To test to see if a document exists, you need to use condition:
If Current List:Name equals [%Current Item:Title%].docx
Here is a similar thread for you to take a look at:
http://social.technet.microsoft.com/Forums/en-US/cc227020-ce81-4c08-aee0-a66789d8ad05/test-to-see-if-document-exists?forum=sharepointcustomizationprev
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Import data from txt-file with reading column names
Hello,
after changing the the export of my simulation programm I can't use the solution postet here, wich works well. (I branded the post as soluted thats why I start a ne post)
Can anybode please tell me how to adept the code to import the new type of txt file. Here the name of the columns are in the first line aof the columns, like this (with ignoring the first lines).
"TIME " "Sitzbasis_X" "Sitzbasis_Y" "Sitzbasis_Z" "Achsklammer_Z" "Antriebsachse_Z" "Gegengewicht_Z" "Lenkachse_Z"
0.000000e+000 -5.472285e+003 -1.886681e+002 1.812099e+004 4.539113e+004 -1.252936e+005 -1.499764e+004 -9.806650e+003
1.000000e-003 -1.722846e+003 -1.141275e+002 8.443419e+003 2.475389e+004 -7.533712e+004 -1.138092e+004 -9.624729e+003
2.000000e-003 -3.964053e+002 -7.694600e+001 3.186345e+003 1.399086e+004 -5.653730e+004 -9.956198e+003 -9.311346e+003
I added an example file
Thanks for Help
Gabriel
Solved!
Go to Solution.
Attachments:
TXT-File.txt 115 KBHello Gabriel
You can use the DataPlugin Wizard (Navigator>>File>>DataPlugin Wizard) to define a new file import filter for your data. It will take only one minute.
Please found the uri file I create for you. Copy the attached file to your disk, unpack it and double click the uri file.
Then you can open your file by using "open with".
Hope this help
Attachments:
TXT_File_DataPlugin.zip 4 KB -
Hi,
A client confronted me with the next question:
I have a map with 500 pdf's in it.
Is it possible to make a new file with only the first page of each pdf?
After that to make a new file with only the second page of each pdf?
And after that the third?
Etc.
Is that possible with an action?
Or are there scripts for?
I couldn't find them.
I use an iMac with Acrobat XI.
Any help is very welcome.
Thanks in advance.
BornholmYou can extract each page from each pdf as a seperate page. Once this is done you can select the pages tocombine.
You would have to write custom a custom JavaScript and programatically code the names to combine if the extracted file pages habvestandars naming that could be programed. There maybe some security coding you will have to do because of Adobe restrictions but this all documented in the Acrobat JavaScript Reference. -
How to output a postscript file with .ps extension name in jsp?
Hi,
I could use a servlet to output a postscript file with .ps file extension name. But I tried to do the same with jsp, for some reason, jsp always outputs a file with .jsp extension name though the content is postscript. Could anyone help me on this? Here is my jsp code:
<%@page contentType="application/postscript"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="java.util.*" %>
<%@page import="java.io.*" %>
<jsp:useBean id="corresv" class="oiintranet.CorresVBean" scope="request"/>
<%
response.setContentType("application/postscript");
String corresId = request.getParameter("Id");
corresv.setCorresId(corresId);
PrintWriter output = response.getWriter();
output = corresv.getResult(output);
output.flush();
%>
In the bean corresv:
public class CorresVBean extends BaseBean {
private String corresId;
public void setCorresId(String s) {
this.corresId = s;
public PrintWriter getResult(PrintWriter output) {
//get postscript file content from a socket, one string line each time until reaches "X_END"
String str;
while ((str = in.readLine()) != null) {
if (str.equals("X_END")) break;
output.println (str);
output.close();
}catch(Exception e) {
e.printStackTrace();
return output;
Thank you in advance.
GeraldineHi
Every time u want to make a file u need to make its extension. I am talking
about general scenario like word, excel so even when u make spool file
so u need to give extension.
like
Spool temp.sql
it will save u r file as sql file.
hope it will help
regards -
How to display the PPT, PDF, XL, DOC files with in the Windows store app?
Hi,
I would like to display the PPT, PDF, XL, DOC files with in the Windows store app? is there any controls provided by Microsoft to view these files with in the app?
Or
Any workaround to achieve the desired functionality?
Kindly provide your inputs if any one has.
Regards
PrasadHi Prasad,
As I know currently there is no in-build functionality to display the PPT, XLS or DOC file directly on the Windows Store App, but you can always open these files by
Launcher class
However a good news is we can display PDF on Windows Store App by
Windows.Data.Pdf class, see this for more information:
https://code.msdn.microsoft.com/windowsapps/PDF-viewer-showcase-sample-39ced1e8/
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
When I export slideshows the result is a file with only the first picture then a blank white screen with music. Apple bug or am I missing the obvious?
Usually when the phone shows just the white Apple logo, it indicates an issue with the system software that prevents the phone from finishing it's boot sequence. When this happens, you will need to restore the phone, which removes all data and replaces the system software with a fresh set.
Since the phone is not seen in iTunes when it's in this state, you will have to put it into DFU mode for iTunes to see it.
To put the phone in DFU mode:
- make sure the phone is connected to a computer with the current version of iTunes on it.
- hold the sleep/wake button and the home button simultaneously for 8 seconds.
- let go of the sleep/wake button and continue pressing the home button. The iTunes screen will show a short progress bar then show a dialog box stating that an iPod was detected that is in recovery mode.
-click OK
-click the Restore button in the middle of the iTunes page
After the restore the phone should be back up and running and you can sync your data back. -
XSQL-001: Cannot locate requested XSQL file. Check the name.
I downloaded oracle 9i and the latest beta of XDK for Java and
encountered the following error:
Oracle XSQL Servlet Page Processor 9.0.2.0.0C (Beta)
XSQL-001: Cannot locate requested XSQL file. Check the name.
Since I am using JBuilder5, I configured the bundled Tomcat to
reference the XSQL Servlet as per the described docbase setting.
n.b.: I am not running a web or application server at this time.
Tomcat is my servlet container which I directly connect to from
my browser.
I extracted the XDK into the oracle\ora90 folders. I extracted
XDK to my oracle\ora90 folder, since
the "bundled" XDK is located there already, and it appeared to
be lacking the XDK for Java.
I read the xdkload.bat, and it appeared to be required to
resolve earlier undefined methods
issues as per the documentation, so I gambled and ran it. BTW,
unresolved methods was my initial problem.
The attached files describe a method not defined error. Not sure
how to proceed. Thanks.I should have added the associated Tomcat trace. Note the
exception, java.lang.NoSuchMethodError, which is possibly the
real issue.
2001-10-21 06:23:07 - ContextManager: Adding context Ctx
( /examples )
2001-10-21 06:23:07 - ContextManager: Adding context Ctx
( /admin )
2001-10-21 06:23:07 - ContextManager: Adding context Ctx( /test )
2001-10-21 06:23:07 - Ctx( /xsql ): Set debug to 1
2001-10-21 06:23:07 - ContextManager: Adding context Ctx( /xsql )
2001-10-21 06:23:07 - ContextManager: Adding context Ctx( )
2001-10-21 06:23:07 - Ctx( /xsql ): XmlReader - init /xsql
E:\oracle\ora90\xdk\demo\java\xsql
2001-10-21 06:23:07 - Ctx( /xsql ): Reading E:\oracle\ora90
\xdk\demo\java\xsql\WEB-INF\web.xml
2001-10-21 06:23:07 - Ctx( /xsql ): Loading -2147483646 jsp
2001-10-21 06:23:08 - PoolTcpConnector: Starting
HttpConnectionHandler on 8080
2001-10-21 06:23:08 - PoolTcpConnector: Starting
Ajp12ConnectionHandler on 8007
2001-10-21 06:31:37 - Ctx( /xsql ): Exception in: R( /xsql
+ /fly/index.xsql + null) - java.lang.NoSuchMethodError
at oracle.xml.xsql.XSQLConfigManager.reloadConfigFile
(XSQLConfigManager.java:480)
at
oracle.xml.xsql.XSQLConfigManager.insureConfigurationIsLoaded
(XSQLConfigManager.java:190)
at oracle.xml.xsql.XSQLPageManager.getPage
(XSQLPageManager.java:73)
at oracle.xml.xsql.XSQLPageRequestImpl.getXSQLPage
(XSQLPageRequestImpl.java:454)
at oracle.xml.xsql.XSQLPageProcessor.process
(XSQLPageProcessor.java:85)
at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService
(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service
(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service
(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service
(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConne
ction(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484) -
Where are the stamps files with their crazy names located in the Macintosh
Hey
I am looking for the files stamps with those crazy names. I work on a iMac OS X Tiger.
I have created a stamp and found the corresponding file in "acrobat user data" but I want to create a dynamic stamp.
I have found this tutorial :
http://www.acrobatusers.com/tutorials/2007/custom_dynamic_stamp/
very helpfull but I am unable to find the dynamic file they mention in this tutorial.
I would like to know where are located the files, whith they coded names, corresponding to the models of stamps given by acrobat. Where are they located in the Macintosh ? I can't find them.for the existing stamps, go to where Acrobat has been installed, right-click or ctrl-click the Acrobat package and select 'Show package contents'.
The browse to the following folder assuming you're using the English version of Acrobat:
Contents/Plug-ins/Comments.acroplugin/Stamps/ENU/ -
Search a string with in some file and get the name of file
i want to search a string in some files that are in a given directory and return the name of file having searched string.I am doing this with grep command as given below
import java.io.*;
public class linux_java {
public static void main(String[] args) {
try {
String command = "find . | xargs grep -l Resolv /data2/opt/jakarta-tomcat-4.1.24/webapps/Oa/BOG/*.txt";
final Process process = Runtime.getRuntime().exec(command);
OutputStream os= process.getOutputStream();
System.out.println("out put stream= " +os);
PrintStream stdIn = new PrintStream(new BufferedOutputStream(process.getOutputStream()), true);
System.out.println("Return code = " + stdIn);
} catch (Exception e) {
e.printStackTrace();
i dont know how to get the name of file that are return by the execution of command through process object. Please send the code for the samethanks for your suggestion....
i change the code but now it is giving error as /usr/bin/find incomplete syntax....but i am giving the right syntax....
please confirm whether the syntax is correct...
import java.io.*;
import java.util.*;
public class linux_java {
public static void main(String[] args) {
try {
//String command = "ls -alt";
String command = "find /data2/opt/jakarta-tomcat-4.1.24/webapps/Oa/BOG -type f -exec grep -sl 'Aggarwal' {} \\; 2>/dev/null";
///grep -l System test/*java
System.out.println(" the command is"+command);
final Process process = Runtime.getRuntime().exec(command);
InputStream is = process.getErrorStream();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String line="";
System.out.println(" the BufferedReader is"+br.readLine());
while ((line = br.readLine()) != null) {
System.out.println(" the files are"+line);
} catch (Exception e) {
e.printStackTrace();
} -
Name the PDF file with a field name
Hi,
I'm new to ES2 and Form creation in LiveCycle, my knowledge in scripts is very less or none i can say, if any one out there could help me out with this i'd be greateful.
I have created a fillable PDF Form using LivecCycle ES2 and would like to know how to name the PDF file with a field value from the form when " save form " or " submit " button are clicked.
Thanks in advance.
Mithun.M.IYou can save the form with name generated from a field's value, but therefore you will have to install a folder level script first and design a custom save button in your form.
You cannot do this with the applications save or save as... buttons, and you also cannot rename a file on submit.
Here's an example form and a folder level script. (Maybe to complicated fdr newbies)
http://thelivecycle.blogspot.com/search/label/Save
Maybe you are looking for
-
Mouse Not Working in Remote Desktop Connection
Hello, I am connecting from a work computer running Windows 7 Enterprise to my home computer running Windows 8.1 Pro. I am able to connect and the keyboard works just fine, but the mouse is not visible or usable in the remote system. Any ideas? Thank
-
Iphoto remove photos from iphone not working
For the past couple months iphoto will not delete the photos from my iphone. It successfully imports them, prompts to delete, appears to delete but doesn't actually remove them. They are still on my iphone. iphoto recognizes that they have already be
-
Only part of my Itunes library shows.
The Ipod touch has all my music and such on it but when I go to sync new music onto it, only part of the library shows. I cant see any of the library in my itunes on the computer other than what i have purchased. New music doesnt sync even though it
-
After Effects CC 12.2 crash on launch
Running trial version, It used to work a week straight, but a few days ago suddenly stopped (no major changes to laptop, no new software installs). Tried... 1. changing Adobe under AppData/Roaming to Read/Write 2. Uninstalling, Reinstalling 3x 3. Re
-
Signcut keeps crashing on my imac
this is the report Date/Time: 2011-11-28 15:55:00.857 -0500 OS Version: 10.4.11 (Build 8S2167) Report Version: 4 Command: SignCut Path: /Applications/SignCut.app/Contents/MacOS/SignCut Parent: WindowServer [57] Version: 1.07 (1.07) PID: