Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Run command prompt command via VBScript

$
0
0

I have a command which gives only read permissions to the user on D drive .. When I run the command from cmd it runs just fine but when I try running it by integrating with VBScript it just doesn't work... I tried everything I could it just doesn't work.... any help please!!!!!

this is the command I want to run via vbscript

echo y|cacls.exe D:\ /G user:R

when I run the script it shows "file not found " error.

Thanks in advance!!


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>