Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9

Thread: Help plis !

  1. #1
    Join Date
    Mar 2006
    Posts
    8

    Help plis !

    how I make to create a folder and the property of this folder that will be created is Hidden and shared ?

  2. #2
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    You can't use SF to set a folder as shared or hidden. But you could use a third party tool like SetACL. Now I have only tried SetACL in a controlled environment I never used it in a full release, but it should do the trick for you.

  3. #3
    Join Date
    Jun 2005
    Posts
    470
    You can do this with a batch file I think.

    To share a folder the syntax was
    net share blah="C:\Test"

    which will share the folder C:\Test as blah

    To set something as hidden use the attrib command like
    attrib +h "C:\Test\*.*" \s \d

    Not 100% sure about the syntax so please check. Probably the user running the installer should be admin. About sharing do some tests on different OS's and with xp simple file sharing on/off

  4. #4
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    Good Idea I did not think of using netshare. Nice you could even modify the batchfile at runtime if you had to.

  5. #5
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524
    That's great! To make things just a bit simpler, you could skip the batch file all together and call those commands directly from AMS using Shell.Execute().
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

  6. #6
    Join Date
    Nov 2005
    Location
    Banned by moderator.
    Posts
    264
    But does SUF include the Shell.Exceture() action?

  7. #7
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524
    Quote Originally Posted by playmenow
    But does SUF include the Shell.Exceture() action?
    Sure does!
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

  8. #8
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    PHP Code:
    Shell.Execute()[PHP]

    Example 
    Shell.Execute(SessionVar.Expand("%AppFolder%").."\ \Myfile.exe", "open", "", "", SW_SHOWNORMAL);
    [/PHP]

  9. #9
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    PHP Code:
    Shell.Execute() 
    Example
    PHP Code:
    Shell.Execute(SessionVar.Expand("%AppFolder%").."\\Myfile.exe""open"""""SW_SHOWNORMAL); 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts