ouch!:frown:
is there another way that don't require user input?
Printable View
Sorted it for you, Took me some time HOWEVER this works
Code::enab
cls
echo y| cacls "C:\Danea\Archivi/*.*" /p %username%:n
echo.
echo y| cacls "C:\Danea\Archivi/*.*" /e /g %username%:r
exit
I Have piped the command into the initial command
your welcome
any more scripts or anything then let me no, we can create loads of different tasks from file hiding to locking etc
well depends on what you want to acheieve,what you want to show or act etc
id start basic, i would jump in the deep end creating mad stuff. start small... do something write text, then it clears
so basics would be
@echo off (always use this)
cls - clear screen
echo - echos text so to start would be
pause - waits , press any key to continue
@echo off
cls
echo hello
pause
the displays the word hello, and text after the echo
to create space would be
@echo off
cls
echo hello
echo.
echo how are you
this would be like
Code:Hello
How are you
Windows CMD Commands
That has a list of commands, applying them into a script maybe a little harder than it looks BUT im here if u need help. Wat was u thinking of creating?
ok this is an example
so F is basically an open variable meaning that F can be anything i.e a path in our example. the D as our second as our destionation.. once these are set we use the normal command xcopy then outputting what we first specificed which was f and dCode:
@echo off
cls
color A
set /p f=Files to be moved:
set /p d=Destination :
xcopy %f%" "%d%
pause
you can drag a file onto the cmd window to auto populate the path but on the destination you have to make sure that the path endings with a /
e.g c:/program files/document.txt
to
c:/program files/test folder /
without that the file wont move