desi sur

Greenhorn
+ Follow
since Jun 03, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by desi sur

Other than using the above JCIFS library I believe some server needs to be installed , or in other words what are the pre-requisites ?
16 years ago
Hi,

I am trying to create directories on a file share (windows) from a java process running on a unix machine. What is the best way to do this ?

I tried using runtime to create directories but it fails as it tries to use the id under which the java program runs, is FTP the best way to create directories in which I can pass the user id / pwd to authenticate and then perform the operation ?
16 years ago
Thanks for your reply Bear !

We donot want to use active x what is the another alternative to replicate file explorer function like showing file explorer and cutting and pasting files .
Is it possible to have file explorer function in swing. for example it should be able to copy and paste files from local drive to network drive in a side by side window, just like the file explorer .

Is swing the best option ? Is there any sample code ?
16 years ago
How can I execute windows shell command for example "run notepad.exe" on the client side in a jsp .

Note : I want to execute windows command only client side.
Normally we redirect to a servlet or a jsp can we redirect to a file share i.e when we do

request.sendredirect("file:\\direcotry_a\directory_b\directory_c") ?

i tried the above but it is not working do we need to use any other format ?
16 years ago
JSP
Paul, thanks for your reply.

However in this particular case it is a file share and there are other directories which cannot be shared to user, so each one should be restricted to just creating a directory and copying there files into that directory (level2).

Is there any sample code to set file permission using FilePermission ?
16 years ago
Thanks for your reply, but how do we set file permission dynamically from java program.

for instance we have below direcotry structure and want to give write access to place or edit files under LEVEL 2 DIRECTORIES , how can we do that ? I also donot want him to navigate uppel level directories. How do we set permissions from java ?

LEVEL 1 DIR
LEVEL 2 DIR
LEVEL 2 DIR
FILE1
FILE2
FILE3
LEVEL 2 DIR
16 years ago
to open a folder in file server we normally use following command in java

Runtime.getRuntime().exec("explorer " + dirPath) which will open a windows explorer option.

However is there a way to remove/disable options like rename,add folder other functions in the windows explorer from java ?
16 years ago
Hi,

I need to list a directory structure under a file server using java and jsp (no applets). Does anybody have a sample code. I also need to store files later (kind of upload) on the file server.

can some experts give me suggestion or sample code.

sur
16 years ago