D
David Eadie
G'Day all,
I cant for the God in me work out how to execute the following command
line in vb.net: (watch for the word wrapping also)
Sub(ByVal username As String)
Shell("ECHO Y| cacls h:\finance\" & username & "\" & "+Common /G " &
username & ":R", AppWinStyle.Hide, True)
End Sub
Now if I was to paste that snippet into a cmd prompt and run it it
will work no worries as it does also from a .bat file.
The ECHO Y| is there because if you execute the command without it it
will ask for a <y/N> to confirm, obviously stalling the process and
not completing it.
So what are some alternatives or what am I doing wrong?
Cheers
Dave.
I cant for the God in me work out how to execute the following command
line in vb.net: (watch for the word wrapping also)
Sub(ByVal username As String)
Shell("ECHO Y| cacls h:\finance\" & username & "\" & "+Common /G " &
username & ":R", AppWinStyle.Hide, True)
End Sub
Now if I was to paste that snippet into a cmd prompt and run it it
will work no worries as it does also from a .bat file.
The ECHO Y| is there because if you execute the command without it it
will ask for a <y/N> to confirm, obviously stalling the process and
not completing it.
So what are some alternatives or what am I doing wrong?
Cheers
Dave.