Thank you very much for the explanation.
It's working great now.
Search found 130 matches
- 13 Aug 2022 17:43
- Forum: DOS Batch Forum
- Topic: SetACL error
- Replies: 5
- Views: 2809
- 12 Aug 2022 16:20
- Forum: DOS Batch Forum
- Topic: SetACL error
- Replies: 5
- Views: 2809
Re: SetACL error
I was able to get it to run but I don't understand why.
I had:
I added -ace:
I have no idea what "-ace" means.
It does work now.
I had:
Code: Select all
SetACL.exe" -on %folder% -ot file -actn ace "n:%username%;p:full"
Code: Select all
SetACL.exe" -on %folder% -ot file -actn ace -ace "n:%username%;p:full"
It does work now.
- 12 Aug 2022 15:59
- Forum: DOS Batch Forum
- Topic: SetACL error
- Replies: 5
- Views: 2809
Re: SetACL error
Great catch. Thank you very much for pointing that out to me. I have changed it from Folder to File. I'm now getting a new error: C:\Batch>"C:\Batch\SetACL.exe" -on C:\Windows\system32\spool\Printers -ot file -actn ace "n:Gary;p:full" ERROR in command line: No parameter found for option n:Gary;p:ful...
- 12 Aug 2022 12:20
- Forum: DOS Batch Forum
- Topic: SetACL error
- Replies: 5
- Views: 2809
SetACL error
I have a batch file that I'm trying to create and I'm getting an error: This is the error: C:\Batch>"C:\Batch\SetACL.exe" -on C:\Windows\system32\spool\Printers -ot file -actn ace "n:Gary;p:full" ERROR in command line: No parameter found for option n:Gary;p:full! This is the bat file: net stop spool...
- 11 Feb 2021 10:09
- Forum: DOS Batch Forum
- Topic: set /p Select=Enter y: Not working
- Replies: 6
- Views: 4927
Re: set /p Select=Enter y: Not working
I re-typed the line and it worked again.
Thank you,
Docfxit
Thank you,
Docfxit
- 09 Feb 2021 21:44
- Forum: DOS Batch Forum
- Topic: set /p Select=Enter y: Not working
- Replies: 6
- Views: 4927
Re: set /p Select=Enter y: Not working
Thank you for the reply... I'm getting a new error: At this line: echo >USBMakeBootable.scr list disk It isn't writing out the file. @echo on :: *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ :: Warning!!! :: Do not run this on your computer. It is customized for my computer. :: Your compu...
- 09 Feb 2021 20:01
- Forum: DOS Batch Forum
- Topic: set /p Select=Enter y: Not working
- Replies: 6
- Views: 4927
Re: set /p Select=Enter y: Not working
Thank you for the reply...
Do you see the open parentheses at:
Is Choice available while I'm booted in windows repair? Windows 8
Thanks,
Docfxit
Do you see the open parentheses at:
Code: Select all
Echo "file system (Fs) as FAT32"
Echo .
set /p Select=Enter y:
if "%Select%"=="y" (
ECHO Yes
) ELSE (
Thanks,
Docfxit
- 09 Feb 2021 18:03
- Forum: DOS Batch Forum
- Topic: set /p Select=Enter y: Not working
- Replies: 6
- Views: 4927
set /p Select=Enter y: Not working
I created this bat script to fix a computer that won't boot. It needs the ESP partition fixed so I can make it bootable. I'm having trouble with one SET statement that isn't doing what I want it to do. I can't figure out why. Towards the end of the code you will see: :: *~*~*~*~*~*~*~*~*~*~*~*~*~*~*...
- 11 Nov 2020 13:03
- Forum: DOS Batch Forum
- Topic: Remove gargage characters
- Replies: 4
- Views: 4101
Re: Remove gargage characters
You are a genius. That worked really great. I wanted to add the command to the output txt file so I could make the output clearer. Do you have any suggestions as to how I can make it look nicer? Echo Run bootrec /rebuildbcd >>"%~dp0FixBootBCD.txt" >"%~dp0FixBootBCD.~tmp" bootrec /rebuildbcd >>"%~dp0...
- 11 Nov 2020 12:02
- Forum: DOS Batch Forum
- Topic: Remove gargage characters
- Replies: 4
- Views: 4101
Remove gargage characters
I have a bat file that I would like to find a solution remove the garbage characters after Diskpart runs. " ÿþ" The bat file: bcdedit /enum all >"%~dp0FixBootBCD.txt" bcdedit | find "osdevice" >>"%~dp0FixBootBCD.txt" (echo SELECT DISK 0 echo SELECT PARTITION 1 echo GPT ATTRIBUTES=0x0000000000000001 ...
- 16 May 2020 19:13
- Forum: DOS Batch Forum
- Topic: Unlocker
- Replies: 6
- Views: 5529
Re: Unlocker
Based on my tests, it seems that you need the -option format instead of the /option format for flags. unlocker.exe "list_of_files.txt" -L -S -D -O deleted the files listed and created an output log You are a miracle worker. That works perfect. I tried dashes before. I must have not had the correct ...
- 16 May 2020 15:03
- Forum: DOS Batch Forum
- Topic: Unlocker
- Replies: 6
- Views: 5529
Re: Unlocker
Based on the picture you've shown, you need the /S option to hide the GUI, and the file containing the files to unlock goes after the /L option. unlocker.exe /L UnlockerListofFiles.txt /O /D /S Great observation. I still couldn't get it to delete the files/partition. The next thing I tried was: C:\...
- 16 May 2020 11:03
- Forum: DOS Batch Forum
- Topic: Unlocker
- Replies: 6
- Views: 5529
Re: Unlocker
Thank you for the suggestion... I modified your code a little to prove it was working as expected: for /f "delims=" %%f in ("UnlockerListofFiles.txt") do ( Echo "%%~f" C:\Programs\Unlocker\Unlocker.exe "%%~f" ) In the cmd window this is what I got: C:\Programs\Unlocker>for /F "delims=" %f in ("Unloc...
- 13 May 2020 11:42
- Forum: DOS Batch Forum
- Topic: Unlocker
- Replies: 6
- Views: 5529
Unlocker
I would like to get Unlocker working. My preference would be to get Unlocker to delete files from a list of files that are written to a file. I can't seem to get Unlocker working from a batch file no matter what command line parameters I give it. In these examples none of them work when I start the ...
- 06 Apr 2020 10:48
- Forum: DOS Batch Forum
- Topic: Run PSEXEC
- Replies: 9
- Views: 7239
Re: Run PSEXEC
The code isn't broken, you just never gave it the PID to search for. As written, the script expects two arguments: the application name as it appears in tasklist and the PID of the running task, in that order. I'm trying to figure out if the program is running. I found the original way I was doing ...