Create a folder if it is non-existent
Hello,
I would like to create a repertory if it is non-existent.
Is this somebody has an example?
Thank you
"I'm sorry for my English, I do not speak it well"
falkpl wrote:
> Look in File I/O>>Advanced File Functions. There are two functions,
> "List Directory" and "New Directory" which will allow you to do what
> you want. First search a location for the subdirectory and if it does
> NOT exist create it using "new directory" these VIs are nice and even
> allow you to set privledges and attributes.
An even simpler solution: Just execute the "New Directory" function and
ignore any error returned.
Or more correctly, use "File Info" and look at the error code. If no
error is returned and the directory output is true, you are fine. No
error and directory output is false means you have a conflict with a
file already existing. An error output means you can go and try to
create the dir.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions
Similar Messages
-
Hi,
Did some non sense out of ignorance.Created 2 Apple ID account, one with non existent mail. It suddenly coming back to haunt me. Till now everything was ok, was dowlinding lots of apps, music... Now it suddenly swichted to the fake e-mail adress, i'm totally bloqued.
How can i delete this second useless account?Hello,
You don't need access to the email address to log in to the Apple ID and you can change the email if required.
Assuming you don't need it for any services, as you can't actually delete an Apple ID, log in here (link) and remove all personal details from the page and then cease using that account.
regards
mrtotes -
Create Save to folder if it does not exist
I have a script that will save a file to a folder up one level. In other words if the original file was in client/jpg I wanted it saved in client/digipics. The client folder will always have a different name.
I want to add code that will create the "digipics" folder if it does not exist. Here is what I have so far that works as long as I have the "digipics" folder already created:
#target photoshop
var AD = app.activeDocument;
var imgName = AD.name;
var CurrentFolder = activeDocument.path;
var parentFolder = decodeURI(activeDocument.path.parent);
// Write file up one level into "digipics"
saveFile = new File(parentFolder + '/' + "digipics" + "/" + imgName)
saveOptions = new JPEGSaveOptions();
saveOptions.embedColorProfile = true;
saveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
saveOptions.matte = MatteType.NONE;
saveOptions.quality = 8;
AD.saveAs(saveFile, saveOptions, true,Extension.LOWERCASE);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
What code can I add as an IF statemnt incase I forget to create the folder first. It would create the folder then save to it.#target photoshop
var AD = app.activeDocument;
var imgName = AD.name;
var CurrentFolder = activeDocument.path;
var parentFolder = decodeURI(activeDocument.path.parent);
var digiFolder = new Folder(parentFolder + '/' + "digipics");
if (digiFolder.exists == false) digiFolder.create();
// Write file up one level into "digipics"
saveFile = new File(digiFolder + "/" + imgName)
saveOptions = new JPEGSaveOptions();
saveOptions.embedColorProfile = true;
saveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
saveOptions.matte = MatteType.NONE;
saveOptions.quality = 8;
AD.saveAs(saveFile, saveOptions, true,Extension.LOWERCASE);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
Should do the job… -
I keep getting this error in Dreamweaver when I am trying to upload my website? Can you tell me what I am doing wrong? here is the error message: /html - error occurred - Unable to create remote folder /html. Access denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured. File activity incomplete. 1 file(s) or folder(s) were not completed. Files with errors: 1 /html
Nobody can tell you anything without knowing exact site and server specs, but I would suspect that naming the folder "html" wasn't the brightest of ideas, since that's usually a default (invisible) folder name existing somewhere on the server and the user not having privileges to overwrite it.
Mylenium -
I have a script that needs to be modified to create a folder on the desktop and share with everyone if it does not exist on a Windows 7 PC - No Domain. Here is the script, need help at bottom
=======================================================
Set objShell = CreateObject("WScript.Shell")
objComputer=objShell.ExpandEnvironmentStrings("%ComputerName%")
IF Right(objComputer,3) = "000" Then
Else
strShortcut = objShell.SpecialFolders( "Desktop" ) & "\%username% Share.lnk"
strShortcut = objShell.ExpandEnvironmentStrings(strShortcut)
Set objLink = objShell.CreateShortcut( strShortcut )
objComputer=objShell.ExpandEnvironmentStrings("%ComputerName%")
objServer=Left(objComputer,7) & "-000"
objLink.Description = objShell.ExpandEnvironmentStrings("%username% Share")
objLink.TargetPath = objShell.ExpandEnvironmentStrings("\\" & objServer & "\Users\%username%\Desktop\%username% Share")
objLink.Save
End If
=======================================================
if "C:\Users\%username%\desktop\%username% Share" exits do nothing
if not create the folder and share it with everyone read only
======================================================
The section directly above is what I need to add, anyone have a clue how to make this work?Bill: Can you suggest a site? I am in the weeds here trying to get this done yesterday. I have been reading code and trying to figure this out since yesterday morning. I have to roll out this image to 2 dozen machines and
this is holding us back. Any idea which site I can post to for help?
The bigger issue is that you have been given the answer to this in many different forms and, because you have no technical background, you fail to see what is being shown to you. That is why I have repeatedly suggested that you hire a consultant.
The link to the learning material is at the top o this page. You can also search the web for Windows consultants.
In the learning link you can also look up how to manage files. If, in the beginning you had chosen to use the learning materials you might not be in this bind.
Look up and research the FileSystemObject.
¯\_(ツ)_/¯ -
Help with seting up a Data Sorce can't be created with non-existent Pool
I am wanting to use an Oracle 9i with WebLogic 7
I have the following in my config.xml:
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
Name="Thin.Pool" Password="{3DES}C3xDZIWIABA="
Properties="user=SYSTEM" TestTableName="OID"
URL="jdbc:oracle:thin:@localhost:1521:DB_SID"/>
<JDBCDataSource JNDIName="DB_DS" Name="DB_DS" PoolName="Thin.Pool"/>
The console seems happy, no error mesages but in the log I get:
####<Mar 31, 2003 6:33:45 PM MST> <Info> <HTTP> <blue> <GameServe>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <kernel
identity> <> <101047>
<[ServletContext(id=4110316,name=console,context-path=/console)]
FileServlet: Using standard I/O>
####<Mar 31, 2003 6:35:37 PM MST> <Info> <JDBC> <blue> <GameServe>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <kernel
identity> <> <001082> <Creating Data Source named DB_DS for pool
Thin.Pool>
####<Mar 31, 2003 6:35:37 PM MST> <Error> <JDBC> <blue> <GameServe>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <kernel
identity> <> <001059> <Error during Data Source creation:
weblogic.common.ResourceException: DataSource(DB_DS) can't be created
with non-existent Pool (connection or multi) (Thin.Pool)
at weblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(JdbcInfo.java:127)
at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:260)
at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:154)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:732)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:714)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:417)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:952)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:578)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:419)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:952)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
at $Proxy16.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1784)
at weblogic.management.internal.DynamicMBeanImpl.access$0(DynamicMBeanImpl.java:1737)
at weblogic.management.internal.DynamicMBeanImpl$1.run(DynamicMBeanImpl.java:1715)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1711)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1035)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:353)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:898)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:324)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:193)
at $Proxy13.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5445)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
Why does it say:
can't be created with non-existent Pool
Thanks,Add "Targets" attribute to the connection pool. You may
get an idea how it looks like by searching config.xml
for "targets". If target servers are not set, the pool won't be
deployed and can not be used to a create datasource.
Regards,
Slava Imeshev
"BBaker" <[email protected]> wrote in message
news:[email protected]...
I am wanting to use an Oracle 9i with WebLogic 7
I have the following in my config.xml:
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
Name="Thin.Pool" Password="{3DES}C3xDZIWIABA="
Properties="user=SYSTEM" TestTableName="OID"
URL="jdbc:oracle:thin:@localhost:1521:DB_SID"/>
<JDBCDataSource JNDIName="DB_DS" Name="DB_DS" PoolName="Thin.Pool"/>
The console seems happy, no error mesages but in the log I get:
####<Mar 31, 2003 6:33:45 PM MST> <Info> <HTTP> <blue> <GameServe>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <kernel
identity> <> <101047>
<[ServletContext(id=4110316,name=console,context-path=/console)]
FileServlet: Using standard I/O>
####<Mar 31, 2003 6:35:37 PM MST> <Info> <JDBC> <blue> <GameServe>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <kernel
identity> <> <001082> <Creating Data Source named DB_DS for pool
Thin.Pool>
####<Mar 31, 2003 6:35:37 PM MST> <Error> <JDBC> <blue> <GameServe>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <kernel
identity> <> <001059> <Error during Data Source creation:
weblogic.common.ResourceException: DataSource(DB_DS) can't be created
with non-existent Pool (connection or multi) (Thin.Pool)
atweblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(JdbcInfo.java:
127)
atweblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:260)
atweblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:29
3)
atweblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:375)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:154)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:732)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:7
14)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:417)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
atweblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerI
mpl.java:952)
atweblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
gurationMBeanImpl.java:578)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:419)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
atweblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerI
mpl.java:952)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
at $Proxy16.addDeployment(Unknown Source)
atweblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(D
ynamicMBeanImpl.java:1784)
atweblogic.management.internal.DynamicMBeanImpl.access$0(DynamicMBeanImpl.java
:1737)
atweblogic.management.internal.DynamicMBeanImpl$1.run(DynamicMBeanImpl.java:17
15)
atweblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:780)
atweblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBean
Impl.java:1711)
atweblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:1035)
atweblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
onMBeanImpl.java:353)
atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
8)
atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
3)
atweblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanS
erverImpl.java:898)
atweblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:324)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:193)
at $Proxy13.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanA
ttribute.java:92)
atweblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
eanAction.java:145)
atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:171)
atweblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
let.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1058)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:401)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:306)
atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5445)
atweblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:780)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3105)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2588)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
Why does it say:
can't be created with non-existent Pool
Thanks, -
Creating a Socket to non-existent host very slow
Why does it take a long time to try to create a Socket to a non-existent host on a Linux machine? On a Windows machine it takes approx. 20 sec., but when I try it on a Linux machine it takes approx. 180 sec.!
Here's the code I'm using (very simple):
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
public class SocketCreator {
public static void
main(String[] args) {
long _begin = System.currentTimeMillis();
try {
new Socket("10.10.10.10", 2000);
} catch (UnknownHostException exception) {
exception.printStackTrace();
} catch (IOException exception) {
exception.printStackTrace();
long _end = System.currentTimeMillis();
System.out.println("It took: " + (_end - _begin) + " ms.");
Some additional info:
- Java2 SDK 1.1.x, 1.3.x and 1.4.x
- Windows XP
- Red Hat 7.2, 9This is really a Linux system-wide problem. If you wanted to fix this in Java, you might even have to resort to JNI to sent yourself a signal and interrupt your system call (the system call is connect()).
Unfortunately, the page give by "man tcp" on Linux is often not kept up-to-date with the many options available in /proc/sys/net/ipv4 .
Also, access to the local LAN will often give a quick "No route to host" message.
To test the long-timeout, you have to access a remote IP that does not exist. For instance, on Linux, if you start two xterms, and on the firxt you enter:
telnet 66.120.89.14
and on that second your enter
netstat -an
You will see something like this line:
tcp 0 1 192.168.5.18:32836 66.120.89.14:23 SYN_SENT
So now you know that the socket is sitting in SYN_SENT.
Now, if you look on a nice, full man page of tcp, like
http://www.die.net/doc/linux/man/man7/tcp.7.html
You will see
tcp_syn_retries
The maximum number of times initial SYNs for an active TCP connection attempt will be retransmitted. This value should not be higher than 255. The default value is 5, which corresponds to approximately 180 seconds.
Back on the second xterm, try:
% cat /proc/sys/net/ipv4/tcp_syn_retries
5
I bet you got five also. You could turn it down to two (decreases time to around 20 seconds).
You could try this as root:
# sysctl -w net.ipv4.tcp_syn_retries=2
or even add this command to your /etc/rc.d/rc.local file -
Create nested directory on FTP folder if they don't exist while uploading file
How can I create nested directory on FTP folder if they don't exist. A local file is suppose to exactly uploaded in the same directory structure level in ftp folder. My question is -
1. Is there any C# opensource/free library that take care of creation of all sub-directories from file-path, if they don't exist on ftp and upload the file in one shot.
2. How much it will be feasible to make all these uploads along with some database update, archive, quarantine task in asynchronous? All succeeding tasks are sequentially depends in their order.i.e. ftp upload >> database update>> archive
from local >> quarantine the folder
This really requires parallel & asynchronous operation for heavy upload/transfer and going to be done by a Windows-Service.Hello,
Your Subject:
>Sender File adpter --don't raise alerts when file does not exist in folder
is contradictory to your question.
>if the file does not exist,it is throwing an alert like "Could not process file '.file..xml: No such file or directory '
> Is there any way i can avoid raising an alert if file does not exist in the source folder.
I know you want to say "Don't Raise alerts when file does not exist in folder". Correct me if I am wrong.
Some times it happens, when we write the right thing but it means something else and this is the reason many experts have replied, "how to raise an alert". So if you remove the word "Sender File adapter" from your subject then it will be easy to understand the exact meaning.
Regards,
Sarvesh -
One can create an index on a non-existent column in a table
I am using Oracle 10.2.0.3 on Windows 2003. I wanted to create an index on columnb of
Tablea. When I use statement like:
Create index index1 on tablea (‘columnb’) …
Oracle created index: index1. However, when I looked tat the column in user_ind_columns it had some weird colculn like SYS_NCxxxx. For sometime, I had
No idea what was going on. My index was not being used in queries at all. Then it dawned on me that I should not put single quotes around columnb. Once I removed quotes, things worked as expected.
But why does Oracle allow index on a non-existent column?we cannot create the index on nonexistent column of table We can. Its called a function-based index. Here's how we do it.
Also read Howard's reply, right above yours.
SQL> desc t
Name Null? Type
OWNER NOT NULL VARCHAR2(30)
OBJECT_NAME NOT NULL VARCHAR2(30)
SUBOBJECT_NAME VARCHAR2(30)
OBJECT_ID NOT NULL NUMBER
DATA_OBJECT_ID NUMBER
OBJECT_TYPE VARCHAR2(19)
CREATED NOT NULL DATE
LAST_DDL_TIME NOT NULL DATE
TIMESTAMP VARCHAR2(19)
STATUS VARCHAR2(7)
TEMPORARY VARCHAR2(1)
GENERATED VARCHAR2(1)
SECONDARY VARCHAR2(1)
SQL> create index t_idx on t( substr(object_name, 1, 5));
Index created.
SQL> select column_name from user_ind_columns where index_name = 'T_IDX';
COLUMN_NAME
SYS_NC00014$
SQL> select index_type from user_indexes where index_name = 'T_IDX';
INDEX_TYPE
FUNCTION-BASED NORMAL
SQL> -
when trying to download yosemite it sais that i do not have enough memory. when i look at my memory use it shows that 111.00gb of space is used by movies but when i go th the movie folder it is empty. how can i remove the non existant movies.
Freeing Up Space on The Hard Drive
1. See Lion/Mountain Lion/Mavericks' Storage Display.
2. You can remove data from your Home folder except for the /Home/Library/ folder.
3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
4. Also see Freeing space on your Mac OS X startup disk.
5. See Where did my Disk Space go?.
6. See The Storage Display.
You must Empty the Trash in order to recover the space they occupied on the hard drive.
You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
Try using OmniDiskSweeper 1.8 or GrandPerspective to search your drive for large files and where they are located.
You will need a minimum of 10-12 GBs of free space to install Yosemite, however, that is a bare minimum and should be at least twice that amount. -
Frequently when I create a new bookmark folder the name of an already existing unrelated folder is also changed to the same name as the new one being created. Sometimes if I am creating the new folder in "Bookmarks Menu" the existing folder who's name is changed is also in the "Bookmarks Menu". But sometimes it will be in the "Bookmarks Toolbar".
This is quite frustrating since the purpose of naming them is to identify them.This can be a problem with the file places.sqlite that stores the bookmarks and the history.
* http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
* http://kb.mozillazine.org/Bookmarks_not_saved -
Can't create a folder is the message I get when using the extension manager CS4. Any help would be appreciated.
Hi Carl, I've been wrestling with this too and have made some progress. I'm running EM CS6 and am just installing some xml files (custom file info panel) via my mxi. Some of these xml files reside in folders that already exist and some reside in folders I'm creating with EM (or trying to ...). For example, in my file info panel folder I'm including a "loc" for my localized files.
Problem: EM says it installs the extension and even displays the correct version in EM, properly checks for updates as I have that set up. However, it doesn't actually deploy any files (it fails silently). This same behavior exists on windows XP as well as windows 7 and I've confirmed this isn't a permissions issue.
Conclusion: This seems directly related to folder creation. Absolutely no files deploy using a mxp but using the same mxi to generate a zxp I'm able to achieve partial success - only the files deployed to existing folders extract, any folders that need creating (and the files that go inside them) are ignored and I see references to create folder failures in the EM logs I pulled. I'll paste those below.
I hope you guys can fix / identify this quickly or perhaps give me a workaround as to how I may be able to continue to use the mxp format vs. zxp since my plugin(s) are CS4 compatible as well as CS5 & 6. Thanks!
Log File Snippet:
[DEBUG] Sat Jul 07 00:14:57 2012 [.111] (..\Control\OWLFrontController.cpp,95) ------------------AIR request To C++ Start-----------------------------------------------
[DEBUG] Sat Jul 07 00:14:57 2012 [.111] (..\Control\OWLFrontController.cpp,98) -Receive the request from AIR, Request name is externalRespondFromAIR
[DEBUG] Sat Jul 07 00:14:57 2012 [.111] (..\Control\OWLFrontController.cpp,118) -63
[DEBUG] Sat Jul 07 00:14:57 2012 [.111] (..\Control\OWLFrontController.cpp,118) -6
[DEBUG] Sat Jul 07 00:14:57 2012 [.111] (..\Control\OWLFrontController.cpp,142) -----------------AIR request To C++ End--------------------------------------------------
[DEBUG] Sat Jul 07 00:14:57 2012 [.111] (..\Control\OWLFrontController.cpp,165) -RequestId is63. It is a request used to unlock OK/Cancel
[ERROR] Sat Jul 07 00:14:57 2012 [.112] (..\MMFC\Source\MacrOS.cpp,4338) -CreateDirectory failed, error code = 5.
[ERROR] Sat Jul 07 00:14:57 2012 [.114] (..\MMFC\Source\MacrOS.cpp,4338) -CreateDirectory failed, error code = 5.
[ERROR] Sat Jul 07 00:14:57 2012 [.116] (..\MMFC\Source\MacrOS.cpp,4338) -CreateDirectory failed, error code = 5.
[ERROR] Sat Jul 07 00:14:57 2012 [.118] (..\MMFC\Source\MacrOS.cpp,4338) -CreateDirectory failed, error code = 5.
[ERROR] Sat Jul 07 00:14:57 2012 [.120] (..\MMFC\Source\MacrOS.cpp,4338) -CreateDirectory failed, error code = 5.
[DEBUG] Sat Jul 07 00:14:57 2012 [.133] (..\Control\OWLExtensionMgrUI.cpp,301) -Hide progress
[DEBUG] Sat Jul 07 00:14:57 2012 [.133] (..\Control\OWLFrontController.cpp,400) --------------------Request (C++ side To AIR part ) Start--------------------------
[DEBUG] Sat Jul 07 00:14:57 2012 [.133] (..\Control\OWLFrontController.cpp,403) -Method Name: airCallBack
[DEBUG] Sat Jul 07 00:14:57 2012 [.133] (..\Control\OWLFrontController.cpp,420) -63
[DEBUG] Sat Jul 07 00:14:57 2012 [.133] (..\Control\OWLFrontController.cpp,420) -9
[DEBUG] Sat Jul 07 00:14:57 2012 [.133] (..\Control\OWLFrontController.cpp,420) -100
[DEBUG] Sat Jul 07 00:14:57 2012 [.134] (..\Control\OWLFrontController.cpp,446) --------------------Request (C++ side To AIR part ) End---------------------------
[DEBUG] Sat Jul 07 00:14:57 2012 [.154] (..\Control\OWLExtensionMgrUI.cpp,301) -Hide progress
[DEBUG] Sat Jul 07 00:14:57 2012 [.154] (..\Control\OWLFrontController.cpp,400) --------------------Request (C++ side To AIR part ) Start--------------------------
[DEBUG] Sat Jul 07 00:14:57 2012 [.154] (..\Control\OWLFrontController.cpp,403) -Method Name: airCallBack
[DEBUG] Sat Jul 07 00:14:57 2012 [.155] (..\Control\OWLFrontController.cpp,420) -63
[DEBUG] Sat Jul 07 00:14:57 2012 [.155] (..\Control\OWLFrontController.cpp,420) -9
[DEBUG] Sat Jul 07 00:14:57 2012 [.155] (..\Control\OWLFrontController.cpp,420) -100
[DEBUG] Sat Jul 07 00:14:57 2012 [.155] (..\Control\OWLFrontController.cpp,446) --------------------Request (C++ side To AIR part ) End---------------------------
[DEBUG] Sat Jul 07 00:14:57 2012 [.155] (..\MacrExtensionManager.cpp,7293) -CMacrExtensionManager::InstallExtension(): non-rollback session, reset g_exitCode
[DEBUG] Sat Jul 07 00:14:57 2012 [.235] (..\DBWrapper.cpp,4291) -HandleSetForInstallExtension:+++ extId 3
[DEBUG] Sat Jul 07 00:14:57 2012 [.235] (..\DBWrapper.cpp,4320) -HandleSetForInstallExtension: extId 3, extName Popstar XMP Viewer, prodId 4
[DEBUG] Sat Jul 07 00:14:57 2012 [.353] (..\Control\OWLFrontController.cpp,400) --------------------Request (C++ side To AIR part ) Start--------------------------
[DEBUG] Sat Jul 07 00:14:57 2012 [.353] (..\Control\OWLFrontController.cpp,403) -Method Name: airCallBack
[DEBUG] Sat Jul 07 00:14:57 2012 [.353] (..\Control\OWLFrontController.cpp,420) -63
[DEBUG] Sat Jul 07 00:14:57 2012 [.353] (..\Control\OWLFrontController.cpp,420) -0
[DEBUG] Sat Jul 07 00:14:57 2012 [.353] (..\Control\OWLFrontController.cpp,420) -Flash CS6
[DEBUG] Sat Jul 07 00:14:57 2012 [.353] (..\Control\OWLFrontController.cpp,420) -XMP_Viewer.mxi
[DEBUG] Sat Jul 07 00:14:57 2012 [.353] (..\Control\OWLFrontController.cpp,446) --------------------Request (C++ side To AIR part ) End---------------------------
[DEBUG] Sat Jul 07 00:14:57 2012 [.375] (..\Control\OWLFrontController.cpp,95) ------------------AIR request To C++ Start-----------------------------------------------
[DEBUG] Sat Jul 07 00:14:57 2012 [.375] (..\Control\OWLFrontController.cpp,98) -Receive the request from AIR, Request name is airNotifyOperationBeginOrEnd
[DEBUG] Sat Jul 07 00:14:57 2012 [.375] (..\Control\OWLFrontController.cpp,118) -67
[DEBUG] Sat Jul 07 00:14:57 2012 [.375] (..\Control\OWLFrontController.cpp,118) -install
[DEBUG] Sat Jul 07 00:14:57 2012 [.375] (..\Control\OWLFrontController.cpp,118) -0
[DEBUG] Sat Jul 07 00:14:57 2012 [.375] (..\Control\OWLFrontController.cpp,118) -0
[DEBUG] Sat Jul 07 00:14:57 2012 [.375] (..\Control\OWLFrontController.cpp,142) -----------------AIR request To C++ End--------------------------------------------------
[DEBUG] Sat Jul 07 00:14:57 2012 [.576] (..\Control\OWLFrontController.cpp,95) ------------------AIR request To C++ Start-----------------------------------------------
[DEBUG] Sat Jul 07 00:14:57 2012 [.576] (..\Control\OWLFrontController.cpp,98) -Receive the request from AIR, Request name is externalPumpBridgeTalkMessage
[DEBUG] Sat Jul 07 00:14:57 2012 [.576] (..\Control\OWLFrontController.cpp,118) -pumpBridgeTalkMessage
[DEBUG] Sat Jul 07 00:14:57 2012 [.576] (..\Control\OWLFrontController.cpp,142) -----------------AIR request To C++ End-------------------------------------------------- -
Create a folder with permissions set to This Folder, subfolders
Basically my app creates 4 folders that gives a specific user certain permissions.
I can create the folder find, and i can give the user the correct permissions, but by defaulse it has Apply To set to this folder only, so if the user creates a folder, they wont have permissions to access it.
I want to give it permissions that Apply to: This folder, subfolders, and files.
I have spent hours upon hours trying different things, and trying to find the answer anywhere. Any help is greatly appreciated.
Here is my code to create the folders:
string mailDataPath = "E:\\Data\\MailData\\" + logonName;
string userDataPath = "E:\\Data\\UserData\\" + logonName;
string userProfilePath = "E:\\Data\\UserProfile\\" + logonName;
string userSharedPath = "E:\\Data\\UserShared\\" + logonName;
path[0] = mailDataPath;
path[1] = userDataPath;
path[2] = userProfilePath;
path[3] = userSharedPath;
//If folders do not exists, create them.
for (int x = 0; x < pathAmount; x++)
if (!Directory.Exists(path[x]))
Directory.CreateDirectory(path[x]);
//Sets folder permissions dependant on which folder it is
if (path[x] != userProfilePath)
DirectoryInfo info = new DirectoryInfo(path[x]);
DirectorySecurity security = info.GetAccessControl();
security.AddAccessRule(new FileSystemAccessRule(logonName, FileSystemRights.Modify, AccessControlType.Allow));
info.SetAccessControl(security);
else if (path[x] == userProfilePath)
DirectoryInfo info = new DirectoryInfo(path[x]);
DirectorySecurity security = info.GetAccessControl();
security.AddAccessRule(new FileSystemAccessRule(logonName, FileSystemRights.FullControl, AccessControlType.Allow));
info.SetAccessControl(security);Figured it out. It wasn't as difficult as i made it out to be.
I just need to use 2 access rules
DirectoryInfo info =
new
DirectoryInfo(path[x]);
DirectorySecurity security = info.GetAccessControl();
security.AddAccessRule(new
FileSystemAccessRule(logonName,
FileSystemRights.Modify,
InheritanceFlags.ContainerInherit,
PropagationFlags.None,
AccessControlType.Allow));
security.AddAccessRule(new
FileSystemAccessRule(logonName,
FileSystemRights.Modify,
InheritanceFlags.ObjectInherit,
PropagationFlags.None,
AccessControlType.Allow));
info.SetAccessControl(security);
this is the code for the setting of the permissions.
had to play around with it a bunch to get the correct inheritance.
Im sorry i dont realy understand. Where do i put this code? Is there a guide for were to put this? Thanks for your help! :) -
KM transport error: ALL paths that were specified refer to non-existent
I have a folder /root/company.
I am trying to transport this company folder to my QA system.
I created a KMC file. I followed the instructions in below link.
http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/77da3bb8036ef0e10000000a1553f6/frameset.htm
IT throws an error during import. All paths that were specified refer to non-existent or read-only repositories.
Can anyone please suggest, what am I missing? Do I have to create any repositories on QA system. IF so, please suggest me how to do it?.
We are ussing EP 7.0 portal
Thanks,
RajAs per my understanding you have created KMC file for folder "company" which is inside "root".
Can you confirm if company folder exist in QA environment?? if it dosenot exist then create repository by performing following steps:
1. Go to System Administration --> System Configuration --> Knowledge Management --> Content Management --> Repository Manager --> File system Repository OR CM Repository (as per your requirement)
2. You can find whether you have to create Repository inside File System Repository OR CM Repository by looking into your test or developement environment by going into the path mentioned in step 1. Copy all the properties of the Company repository from test or dev environment.
3. Now inside one of the repository(File System Repository OR CM Repository) you can create one repository with name Company.
4. To create Company repository you will find the option "NEW" inside the above mentioned path and on clicking on the same, fill all the properties (take help of the properties you have copied in step 2).
And now try to upload the KMC file. -
AppleScript - Writing to non-existent directories, and non-existent files..
All,
AppleScript - Writing to non-existent directories, and non-existent files...
Creating directories several levels deep on the fly.
How do we write to a file that does not exist, buried deep down in a hierarchy of directories that don't exist either...
In trying to do this I explored two options. One used AppleScript, assisted by UNIX, which was simplicity itself, the other one used only AppleScript and was considerably more complex, and slower.
http://www.mac-specialist.com/r/asckdirs.html
Hope these are useful,
Best Regards,
Bill Hernandez
Plano, TexasSimplified code examples - lacking extensive error checking -
UNIX example 001:
set file_Name to "Sales Figures.txt" -- File to create.
set file_Path to "2006 Sales:Forecast:Fruits:Flordia:Oranges:Large" -- Folder to create.
set UNIXfilePath to (quoted form of (POSIX path of file_Path))
try
do shell script "mkdir -p " & UNIXfilePath -- Attempt to create a folde, and respective intermediary folder(s).
end try
try
do shell script "touch " & UNIXfilePath & "/" & file_Name -- Attempt to create a blank file.
end try
UNIX example 002:
set file_Name to "Sales Figures.txt" -- File to create.
set file_Path to "2006 Sales:Forecast:Fruits:Flordia:Oranges:Large" -- Folder to create.
try
do shell script "mkdir -p " & (quoted form of (POSIX path of file_Path)) -- Attempt to create a folde, and respective intermediary folder(s).
end try
-- Create a file, and enter some text.
set FREF to open for access file (file_Path & ":" & file_Name) with write permission
write "Beispieltext" to FREF
close access FREF
AppleScript example:
set file_Name to "Sales Figures.txt" -- File to create.
set file_Path to "2006 Sales:Forecast:Fruits:Flordia:Oranges:Large" -- Folder to create.
-- Obtain list of text items of 'file_Path'.
set {oAStID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
set filePathList to text items of file_Path
set AppleScript's text item delimiters to oAStID
tell application "Finder"
set folder_Path to name of startup disk -- Obtain name of boot disk.
repeat with i in filePathList -- Cycle through list.
try
make new folder at folder_Path with properties {name:i} -- create folder.
set folder_Path to folder_Path & ":" & i -- Create new path for next new folder.
end try
end repeat
end tell
-- Create a file, and enter some text.
set FREF to open for access file (folder_Path & ":" & file_Name) with write permission
write "Beispieltext" to FREF
close access FREF
Mac OS X (10.4.4)
Maybe you are looking for
-
Creative Cloud Packager 1.2 problem
One of my customers created a package with Creative Cloud Packager 1.2. And he tries to install it, but the installation stops halfway and starts rolling back. Here is the PDApp.log 07/24/13 11:26:12:660 | [INFO] | | ASU | PIM | PIM | | | 8396 | B
-
How do I move over stored connections on Fire FTP from one PC to another PC ?
I have about twenty stored connection in my ftp client on FTP Tools. How do I move these connections from one PC to another, like bookmarks?
-
Where is my word folder?
-
Writing String Data into a table
Hi, I am facing a problem in writing the data into table. Below is its description: 1. I have created a code which reads the URLs from OPC.server. 2. I need to display it in a table. Since the number of URLs are known, I have defined the rows of the
-
Is there any way to increase the storage on my iphone 4s?
i recently bought an iphone 4s from o2. I would have gone for the 16GB option but unfortunately they only sold the 8GB--as do apple. I was wondering, is there any way I could upgrade my GB from 8 to 16? thank you!