How to create a folder with java application?
Hi expert
I would like to read some tutorial or manual to understand the logic behind the management of the folder and document from a java application in KM.
Anyone could help me?
thank you
Andrea
Dear Andrea,
Please have a look to below documents might help.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30a2a087-190f-2d10-07a4-dad666b44c1f?QuickLink=index&overridelayout=true
http://wiki.sdn.sap.com/wiki/display/Snippets/KMLibrary-ReusableComponentforWebDynpro+Java
Best Regards,
Arun Jaiswal
Similar Messages
-
How to use a proxy with java applications?
I have a nokia 6300 type s40v3
hello,
I would like to know if it is possible to use a proxy of any and how ? kind with java applications.
thank youWell, it works well when, into my applet, i do somethig like this:
URL url = new URL(host);
URLConnection connexion = url.openConnection();My applet uses proxy setting from IE6 but only if i use Java 1.4.2_08.
With IE6 and Java 1.5.04, it doesn't work (my applet doesn't use proxy settings)
With Firefox and Java 1.5.04, it's ok
Have you already seen a problem like this with Java 1.5.04 ? -
How to create a Folder using java.
Hi All,
I have a doubt. I want to create a folder using java.
Inputs are the destination where the folder should be created and the name of the folder. Plz help me in this regard.
thanks and regards,
Vincent .R.check out javadoc for java.io
File reldir=new File("NewDir");//relatively where your program runs
reldir.mkdir();
File absdir=new File("C:/NewDir");//absolute path
reldir.mkdir();
File newdir=new File(absdir,"SubDir");//defines another dir under absdir
newdir.mkdir();
Gil -
How to create a folder with spaces written in Java under Linux?
Hello,
I have a serious problem
I want to run a Linux command using a Java class with the runtime interface, there is a command to create a folder named eg "My Folder", with a space
For create the Unix command is easy to do either:
mkdir My\ Folder
or
mkdir "My Folder"
But how to translate this in Java, I tried with two commands :
Runtime.exec("mkdir My\\ Folder")
Runtime.exec("mkdir \"My Folder\"")
For example :
import java.io.IOException;
public class CreerDossier {
public static void main(String[] args) throws IOException {
Runtime runtime = Runtime.getRuntime();
runtime.exec("mkdir My\\ Folder");
runtime.exec("mkdir \"My Folder\"");
But it's still not working,
For runtime.exec("mkdir My\\ Folder") it creates two folders My\ and Folder
For runtime.exec("mkdir \"My Folder\"") it creates also two folders "My and Folder"
Are there solutions?
Thank you !But my real problem is how to apply the chmod 777 on a folder containing spacesSo why not say so in the first place?
Runtime.exec ("chmod 777 My\\ Folder");Runtime.exec(new String[]{"chmod", "777", "My Folder"});
That is why I chose the example of mkdirYour reasoning on this point is incomprehensible. You wanted help with A so you asked about B. Just wasting time. -
How to create a folder with date each day?
I've not used Automator, just once to "create" a workflow to create a new folder with a name; but what I want is this:
Each morning at 12:01 am, a new folder to be created with the correct date as the name of the folder.
So for tomorrow, Sunday 23 Nov 2008 at 12:01, I'd suddenly have a folder on my Hard Drive that would have the date like 23 Nov 2008 or 11/23/2008 or 23-11-2008 or similar.
Then at the end of a week I'd have 7 of these; - but I can manually trash them-- I want to create these on my HD since I backup via SuperDuper! each morning (automatically) at 3:35 am (incremental backup to an external La Cie HD) and I want to know if was done, so by having a folder with the date on it I can open the external HD and if I see that that folder with the recent date is there, then I'm confident the BackUp was run.
I have been able to create a workflow to create a folder in Automator, but not sure how to:
1. Have the folder created automatically each day at 12:01
2. How to have the folder label be the date
Thanks for any comments or certainly any other work-around or other way to do this or similar.
Regards, SteveOpen the AppleScript Editor. Copy the following into it:
set dt to date string of (current date)
set mth to word 2 of dt
set dy to word 3 of dt
set yr to word 4 of dt
set dtt to mth & " " & dy & " " & yr
tell application "Finder"
make new folder at alias "Macintosh HD:Users:username:Desktop:" with properties {name:dtt}
end tell
Amend the path with your Hard Disk name and username. Save as an application to anywhere suitable.
In iCal, set up an event with a daily repeat and an alarm at the time you want it: under 'Alarm' choose 'Open file': then in the next menu which will appear change from 'iCal' to 'Other' and navigate to your script. Enter the date and time.
Your folder will be created as required: iCal does not need to be running. This script gives the folder name as, for example, 'November 22 2008', but it's easy to amend the script if you want something a bit different - for example:
property zro : ""
set yr to year of (current date) as string
set dy to day of (current date)
set mt to month of (current date)
set dyy to dy as string
set nmm to the number of items in dyy
if nmm is 1 then
set zro to 0
end if
if mt is January then
set mth to "01"
else if mt is February then
set mth to "02"
else if mt is March then
set mth to "03"
else if mt is April then
set mth to "04"
else if mt is May then
set mth to "05"
else if mt is June then
set mth to "06"
else if mt is July then
set mth to "07"
else if mt is August then
set mth to "08"
else if mt is September then
set mth to "09"
else if mt is October then
set mth to "10"
else if mt is November then
set mth to "11"
else if mt is December then
set mth to "12"
end if
set dtt to mth & "-" & zro & dy & "-" & yr as string
tell application "Finder"
make new folder at alias "iBook HD:Users:roger:Desktop:" with properties {name:dtt}
end tell
This gives the folder name as, for example, 11-22-2008. (The days will have leading zeros, if you don't want these just remove the references to 'zro'.) -
How to create a folder through java
Hi All,
Can any one give the solution of my prob.
I want to create a folder in windows m/c through java programe .Is it possible.
If yes then kindly suggest me how...?
Thanks In advance
VikasString newFolderPath = "C:\\";
String newFolderName = "MyFolder";
String spoonFeeding = newFolderPath + newFolderName;
File f = new File(spoonFeeding);
f.mkDir(); -
How to create a Folder with CurrentDatewith Year(2014_02_14)
Hi,
By using Server Object Model, how to create folder in a list
FolderName is :with CurrentDate with year in the format of (2014_02_14)
Ex:2014_02_14
Regards
TharakUse below code to create folder in SharePoint List
//You can also use SPContext to get current list using (SPSite site = new SPSite(http://SP2013:1111))
using (SPWeb web = site.OpenWeb())
web.AllowUnsafeUpdates = true;
SPList list = web.Lists["ListName"]; //enter name of list
SPFolderCollection folders = web.Folders;
string folderName = DateTime.Today.ToString("yyyy_MM_dd");
SPListItem listItem = list.Items.Add("", SPFileSystemObjectType.Folder, folderName);
list.Update();
listItem["Title"] = folderName;
listItem.Update();
web.AllowUnsafeUpdates = false;
for refrence: http://msdn.microsoft.com/en-us/library/ee572091.aspx
Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :) -
How to create a folder (with subfolders) with Applescript
Good afternoon,
Filemaker has the ability to ake use of AppleScript.
From within Filemaker I want to create a new folder (with the name of a FileMaker field) that holds 6 subfolders.
I am a complete noob where it comes to Applescript.
This is my script so far:
tell application "FileMaker Pro Advanced"
set folder_name to cell "FolderName" of current record
end tell
tell application "Finder"
activate
make new folder at folder "Desktop" of folder "dick" of folder "Users" of startup disk with properties {name:folder_name}
end tell
tell application "Finder"
activate
make new folder at folder {name:folder_name} of folder "Desktop" of folder "dick" of folder "Users" of startup disk with properties {name:"subfolder"}
end tell
My problem is: the creation of "Subfolder1"
What is my mistake there?
Help is much appreciated
Dick
Ps: I need to make 6 subfolders thereWhen you crate a new folder you can define various properties, but when refering to the folder just use the name, for example:
make new folder at folder folder_name of folder "Desktop" of folder "dick" of folder "Users" of startup disk with properties {name:"subfolder"}
Note that the result returned from making a new folder is a reference to that folder, so you can also do something like:
tell application "Finder"
set newFolder to (make new folder at folder "Desktop" of folder "dick" of folder "Users" of startup disk with properties {name:folder_name})
make new folder at newFolder with properties {name:"subfolder"}
end tell -
How to share a folder with java? in netbios in windows
hi. I want to write a programa that user can select a directory than
click the share button and the directory will be shared to other pcs.
the other pcs can acces this directory like \\servername\shareddirectory
the question is this. how can i share a director with java or JNI's?
please help me.
with my best regards....thanks about net share command.
i know how to use Runtime.getRuntime.exec()
but i cont find the syntax of net share command.
can u give an example? i use net help share and i try different
sytaxes but i cant find the correct one.
please give an examle about net share command.
thanks a lot. -
HOW TO use OCX controls with Java application
hi
Is it possible to use microsoft Ocx controls in java applications.Anything is possible. You might want to ask if it's a good idea, but look at some of the people who have asked before. It looks like there are products out there to help.
http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Btitle%3Aocx&col=javaforums&x=19&y=13 -
How to create a folder with standard contained folders and files in SharePoint 2013?
I've got folders and files on my SharePoint 2013 site that form a template when I add a new folder for a customer. When I create a new folder for a customer, I want those folders and files added automaticly to that new folder. How can I do that?
How would I go about doing this without Visual Studio? Is that possible? Need to create Folder templates.
Every "new folder" created should have nested folders already included.
Company Name (New Folder 1)
Company Documents (1.01)
Tax Documents (1.02)
Bank Statements (1.03)
Extreme novice, please give as much details as possible! I'm trying to implement SP 2013 without all the 2013 software (Visual Studios, SharePoint Designer, etc.)
Thank you! -
hi,
i want to create folders with the name = date automaticly.
i found several solutions here, but all in LV6.1. could somebody give me an example in LV6.0 ?
I tried it with "get date-string" but that date-string has "." in it :-(
6.1-example :
hereHope this will help!
ian.f
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Attachments:
folder_create_2003.vi 66 KB -
Code to create a folder in java
Hi friends
I want to know how to create a folder in java using files concept.
Can any one send me the code to create a folder in our system using files concept.
Thanks in advance.[http://java.sun.com/docs/books/tutorial/essential/io/file.html]
-
How to create a file under web application root from java program
how to create a file under web application root from java program like an action class?
like an action class?Huh? What exactly is your requirement?
Creating a file is usually done with java.io API. Read the java.io tutorials how to play with files. -
How to use Entrust with java application on unix platform
Hi all,
i have question regarding the use of Entrust with java application on unix
1)I want to use Entrust for encryption/decryption of the file in my core java application on unix platform.
What should be requiremnet for the same and how it is implemented?.
2) I want to Use Entrust for Authentication purpose in my java based web application on unix platform.
What are requirements for Entrust Authentication and how it is implemented ?any one has solution?
Maybe you are looking for
-
Want to change billing date but computer says no
My billing date for phone and broadband is the 6th of the month, with payment being taken around the 20th, which has been fine up until now. However my employer has now changed my salary payment date and I'd like to change the bolling date so that th
-
Insert record page - works in Safari, but not IE / Firefox
I've been working on a form where users can post an enquiry to a database. Thought it was all starting to come together, but I noticed at another client's today that it didn't work in IE. In Safari you fill in the form, hit the Post Enquiry button an
-
I'm tired of getting calls from sales and /or winning a cruise. How can I automatically send incoming calls that are either 'Blocked' or the number is 'Unknown' directly to Voice Mail. I would like to skip the ring and the vibrate (I do have a sile
-
ORA-39097: Data Pump job encountered unexpected error -39076
Hi Everyone, Today i tried to take a export dump pump(table specific) from my test database, version is 10.2.0.4 on Solaris10(64-bit) and i got the following error message, Job "SYSTEM"."SYS_EXPORT_TABLE_23" successfully completed at 09:51:36 ORA-390
-
I have had an upgrade to an iPhone 4s and for some reason there is a ring tag . So when a caller calls there isa song playing until I answer. How do I get rid of it?