Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7889391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:05:15+00:00 2026-06-03T06:05:15+00:00

i want to asking to u. i’ve tried these syntax in my project file,

  • 0

i want to asking to u. i’ve tried these syntax in my project file, and it works.
but, i wan to change these program to be more powerfull.

here my syntax:

public class Main {

public static void main(String[] args) throws InterruptedException, IOException {

    frame f = new frame();
    f.show();


    File f = new File("D:/lala/coba");

    //System.out.println("insert the username:");
   // hide(f);
}

public static  void hide(File src) throws InterruptedException, IOException {
// win32 command line variant
ProcessPerm p = Runtime.getRuntime().exec("cacls " + src.getPath() + " /E /C /P DINA:n");
p.waitFor(); }}

if i want to change the user “DINA” without write on the syntax, what should i do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:05:17+00:00Added an answer on June 3, 2026 at 6:05 am

    Call the java application like
    java Main scott

    with the following code and the user will be scott

    public class Main {
    
    public static void main(String[] args) throws InterruptedException, IOException {
    
        frame f = new frame();
        f.show();
    
    
        File f = new File("D:/lala/coba");
    
        //System.out.println("insert the username:");
       hide(f, args[0]);
    }
    
    public static  void hide(File src, String user) throws InterruptedException, IOException {
    // win32 command line variant
    ProcessPerm p = Runtime.getRuntime().exec("cacls " + src.getPath() + " /E /C /P " + user + ":n");
    p.waitFor(); }}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know, I am asking very simple and stupid question but i want to
I searched everywhere but can't find it. So I'm asking it here. I want
I'm asking this question despite having read similar but not exactly what I want
I feel like a real noob asking this, but here's my problem: I want
I want open pdf file directly without asking open,save options(prompt window).In this temppath is
I didn't want to resort to asking here but after hours of frustration I
Really simple question but rather than asking for an academic explanation I want to
I tried asking before but I wasn't very clear so I'm re-asking it. I
i'm asking about htaccess url rewrite ( mod_rewrite ) actually i want to change
Instead of asking user to upload a video file - I want the user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.