Search found 233 matches

by Dos_Probie
06 Jun 2013 18:26
Forum: DOS Batch Forum
Topic: [ SOLVED ] Delete Script and Script's root folder?
Replies: 7
Views: 3276

Re: Delete Script and Script's root folder?

Ok, thanks anyway.. taskkill /f /im explorer.exe not a good option since that will just blue screen and your unable to run a start explorer command to get back to windows, so guess can't be done :(
by Dos_Probie
06 Jun 2013 17:19
Forum: DOS Batch Forum
Topic: [ SOLVED ] Delete Script and Script's root folder?
Replies: 7
Views: 3276

Re: Delete Script and Script's root folder?

Let me explain this is what I have .. C:\MyFolder with Clean.bat residing in it .. I can run on the last line of clean.bat the below script but that only deletes the bat file, other files and any subdirectories in the MyFolder but not the MyFolder root directory..Any ideas? or is this even possible?...
by Dos_Probie
06 Jun 2013 16:09
Forum: DOS Batch Forum
Topic: [ SOLVED ] Delete Script and Script's root folder?
Replies: 7
Views: 3276

[ SOLVED ] Delete Script and Script's root folder?

Was looking at the post on self deleting the batch script and was curious if it's also possible to not only self delete the batch file but also the root folder that it resides in (not subdirectories)..Any takers? Thanks DP
by Dos_Probie
06 Jun 2013 10:55
Forum: DOS Batch Forum
Topic: Batch file deleting itself issue
Replies: 14
Views: 7547

Re: Batch file deleting itself issue

Thanks for the tip Dave, been using below command but you do get a short flash error as it deletes the batch file, will now start using yours DP

Code: Select all

del /F /Q %0%
by Dos_Probie
06 Jun 2013 03:36
Forum: DOS Batch Forum
Topic: Help with a Xcopy Batch File
Replies: 15
Views: 8018

Re: Help with a Xcopy Batch File

Here is a desktop backup I use that you could also add other paths to, creates everything in a [Backup]\day-dt-time stamp zip folder as well..DP @echo off&color 1f&mode con:cols=66 lines=13&title, [ + DAILY DESKTOP BACK-UP + ] ::== NOTES == ::Title : Daily Desktop Backup ::File Name : Ea...
by Dos_Probie
05 Apr 2013 18:19
Forum: DOS Batch Forum
Topic: Looking to encrypt batch scripts but need to edit in-between
Replies: 56
Views: 20736

Re: Looking to encrypt batch scripts but need to edit in-bet

Why do you need to encrypt your code do you work for the DoD? , Seriously most of the compilers that I have used extract to the tmp folder during execution so anyone with any basic puter knowledge can still get your code easily..Plus you have to backup all your batch files if you want to make future...
by Dos_Probie
05 Apr 2013 15:00
Forum: DOS Batch Forum
Topic: ** Convert .Reg Files to Batch File **
Replies: 7
Views: 3858

Re: ** Convert .Reg Files to Batch File **

Well on reg or bat files that require elevation you can always run a command using PsExec I said it would from my quote above (reg or bat files) but you will need to drop off the quotes and it will then edit over to the registry with admin elevation and no eula on first run.. C:\Windows\System32\Ps...
by Dos_Probie
05 Apr 2013 08:09
Forum: DOS Batch Forum
Topic: ** Convert .Reg Files to Batch File **
Replies: 7
Views: 3858

Re: ** Convert .Reg Files to Batch File **

Well on reg or bat files that require elevation you can always run a command using PsExec
to grant you full control (such as adding exceptions to hosts file with your virus app like Windows Defender etc.)
ie: C:\Windows\System32\PsExec.exe -accepteula -i -d -s C:\myreg.bat
by Dos_Probie
04 Apr 2013 18:33
Forum: DOS Batch Forum
Topic: ** Convert .Reg Files to Batch File **
Replies: 7
Views: 3858

Re: ** Convert .Reg Files to Batch File **

Reg converted to bat Windows Registry Editor Version 5.00 ;MY APPS [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Applications] "MUIVerb"="My Apps" "ExtendedSubCommandsKey"="Directory\\ContextMenus\\apps" "icon"="%windir%\\apps\...
by Dos_Probie
04 Apr 2013 13:48
Forum: DOS Batch Forum
Topic: ** Convert .Reg Files to Batch File **
Replies: 7
Views: 3858

** Convert .Reg Files to Batch File **

Thought I would share a useful converter tool called RegToBat..Its a free portable app that easily converts a .reg file to a batch file which can particularly be useful for those files which need administrative privileges to be merged into the registry. Enjoy! :mrgreen:
get it at: http://www.sordum.org/6839/regtobat-converter-v1-1/
by Dos_Probie
06 Jan 2013 07:08
Forum: DOS Batch Forum
Topic: directory name in Uppercase
Replies: 10
Views: 4280

Re: directory name in Uppercase

Great Tutorial Foxi!..and also explaining More Detail with the student name variable.. Thanx :D
by Dos_Probie
05 Jan 2013 21:32
Forum: DOS Batch Forum
Topic: Need HELP with Dos Prompt or Text..
Replies: 4
Views: 2179

Need HELP with Dos Prompt or Text..

I remember a post in the last year on here where someone changed the dos line colors, but cant seem to find it .. Anyway I have this user input line in my batch file and would like to change the input line [ENTER] to a different color or use a underline cursor using only native dos commands. Does an...
by Dos_Probie
23 Dec 2012 04:32
Forum: DOS Batch Forum
Topic: = Free Context Menu Apps (Part) Batch =
Replies: 5
Views: 1738

Re: = Free Context Menu Apps (Part) Batch =

I am not a big fan of downloading files from a person I don't know so if you have batch code to do something then post the code here inside code tags. That's interesting, I have been a member on this forum longer that you have, and you have responded on many of my posts so if you or having a comput...
by Dos_Probie
22 Dec 2012 19:27
Forum: DOS Batch Forum
Topic: = Free Context Menu Apps (Part) Batch =
Replies: 5
Views: 1738

Re: = Free Context Menu Apps via Batch =

Well the backup.bat, eject.bat and radio.bat or all run via batch from the context menu, as far as the .reg files that could easily be done via batch as well like below script example if you want it a all Totally batch generated script .. apples oranges :: ADD TO CONTEXT MENU :: REG ADD "HKCR\D...
by Dos_Probie
22 Dec 2012 07:01
Forum: DOS Batch Forum
Topic: == Permissions Issue Fix with "Access Denied" ==
Replies: 1
Views: 2222

== Permissions Issue Fix with "Access Denied" ==

If you are getting a "Access Denied" or "Invalid Path" from the commandline window when you attempt to copy or make any changes to the Program files, Windows directory or any subdirectory from there then you are not alone.. Seems these are "Protected Folders" requiring ...