Search found 130 matches
- 31 Jan 2019 00:03
- Forum: DOS Batch Forum
- Topic: Syntax error
- Replies: 3
- Views: 3923
Syntax error
I'm getting this error: ( was unexpected at this time. set "_WinVer=Windows 10" Just before this code: If "%_WinVer%==Windows 10" ( bcdedit.exe /create /d "Windows 10" /application osloader >"%~dp0BootFixerGUID.txt" ) pause Else ::Now we have a clean, working Win 7 bootloader. But we need to add a W...
- 10 Jan 2019 12:04
- Forum: DOS Batch Forum
- Topic: The system was unable to find the specified registry key or value
- Replies: 4
- Views: 8950
Re: The system was unable to find the specified registry key or value
This finds the registry key but requires me to answer the delete: set "RegKey=HKEY_LOCAL_MACHINE\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v "PastIconsStream"=-" reg delete "%regkey%" /f And I get this: set "RegKey=HKEY_LOCAL_MACHINE\Software\Classes\Loca...
- 10 Jan 2019 12:00
- Forum: DOS Batch Forum
- Topic: The system was unable to find the specified registry key or value
- Replies: 4
- Views: 8950
Re: The system was unable to find the specified registry key or value
This is what the key looks like coming from the registry: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify] "PromotedIconCache"="{7820NR76-23R3-4229-82P1-R41PO67Q5O9P},{7820NR75-23R3-4229-82P1-R41PO67Q5O9P},{...
- 10 Jan 2019 04:57
- Forum: DOS Batch Forum
- Topic: The system was unable to find the specified registry key or value
- Replies: 4
- Views: 8950
The system was unable to find the specified registry key or value
In a batch file I have: set "RegKey="HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify"" reg delete %regkey% /v PastIconsStream=- /f This is what I get when I run it: C:\Windows\System32>reg delete "HKCU\Software\Classes\Local Settings\Software\Mi crosoft\Wind...
- 27 Sep 2018 21:33
- Forum: DOS Batch Forum
- Topic: For loop doesn't work
- Replies: 4
- Views: 5127
Re: For loop doesn't work
I have tried to replace del with rd. It still doesn't work. The Attrib removes the system attribute. The reason I would like to remove it is because there are times when there is more than one file within the folder $Recycle.BIN. When the folder $Recycle.BIN is removed Win7 recreates it automaticall...
- 26 Sep 2018 23:25
- Forum: DOS Batch Forum
- Topic: For loop doesn't work
- Replies: 4
- Views: 5127
Re: For loop doesn't work
That worked excellent. Thank you.
I have another For loop that isn't working:
Docfxit
I have another For loop that isn't working:
Code: Select all
cd\
attrib -r -s -h -a "$Recycle.BIN"
@for /f "usebackq delims=|" %%i in (`dir /s /b /x ^| find "$Recycle.BIN"`) do (
del "%%i"
Echo "%%i"
)
- 26 Sep 2018 20:22
- Forum: DOS Batch Forum
- Topic: For loop doesn't work
- Replies: 4
- Views: 5127
For loop doesn't work
The for loop in my bat file doesn't work. The bat file should delete all files named desktop.ini in all folders on the partition. @echo on Set Drive=E: %Drive% attrib -r -s -h -a "desktop.ini" /s @for /f "usebackq delims=|" %%i in (`dir /s /b /x /A:H ^| find "desktop.ini"`) do ( del /A:H "%%i" Echo ...
- 25 Nov 2015 19:31
- Forum: DOS Batch Forum
- Topic: Color Function 21 22 23c
- Replies: 40
- Views: 55112
Re: Color Function 21 22 23c
Thanks,
Now I understand what happened.
Thanks,
Docfxit
Now I understand what happened.
Thanks,
Docfxit
- 12 Nov 2015 13:51
- Forum: DOS Batch Forum
- Topic: diskpart an ssd from a cmd command
- Replies: 2
- Views: 2882
Re: diskpart an ssd from a cmd command
Try this:
SELECT DISK %diskNumber%
CLEAN
CREATE PARTITION PRIMARY
FORMAT FS=ntfs quick label="MyNewDrive"
ACTIVE
Exit
Docfxit
SELECT DISK %diskNumber%
CLEAN
CREATE PARTITION PRIMARY
FORMAT FS=ntfs quick label="MyNewDrive"
ACTIVE
Exit
Docfxit
- 12 Nov 2015 12:52
- Forum: DOS Batch Forum
- Topic: Color Function 21 22 23c
- Replies: 40
- Views: 55112
Re: Color Function 23c
I have tried to use the color function v23c. I'm having unpredictable results. Does anyone know what I am doing wrong? These are the results I am getting: Color A Color B Color C Color D Color E Color F FINDSTR: /G ignored Color G FINDSTR: /H ignored Color H Color I FINDSTR: /J ignored Color J FINDS...