how I make to create a folder and the property of this folder that will be created is Hidden and shared ?
Professional Software Development Tools
how I make to create a folder and the property of this folder that will be created is Hidden and shared ?
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.
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
Good Idea I did not think of using netshare. Nice you could even modify the batchfile at runtime if you had to.
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)))))))==============================================
But does SUF include the Shell.Exceture() action?
Sure does!Originally Posted by playmenow
Yeah right. Who's the only one here who knows the illegal ninja moves from the government?
()))))))))o)))))))==============================================
Shell.Execute(SessionVar.Expand("%AppFolder%").."\ \Myfile.exe", "open", "", "", SW_SHOWNORMAL);PHP Code:Shell.Execute()[PHP]
Example
[/PHP]
ExamplePHP Code:Shell.Execute()
PHP Code:Shell.Execute(SessionVar.Expand("%AppFolder%").."\\Myfile.exe", "open", "", "", SW_SHOWNORMAL);