Search found 357 matches
- 13 Oct 2013 09:54
- Forum: DOS Batch Forum
- Topic: My UAC function
- Replies: 28
- Views: 18528
Re: My UAC function
@alan_b: Do I need to set var=%errorlevel% befor I call the UAC Function? because your code does not work My code does work - it merely failed to address your situation due to your inadequate specification. You specified a function with label :checkfileUAC That function seems to terminate with eith...
- 12 Oct 2013 14:36
- Forum: DOS Batch Forum
- Topic: My UAC function
- Replies: 28
- Views: 18528
Re: My UAC function
Why on earth are you wasting time with code such as choice /C 12r /N /M "Make your selection: " if errorlevel 3 cls & goto restart if errorlevel 2 ( set mainmenuvar=Text1 goto mainmenuloginput ) That sort of code was appropriate when Windows 3.?? was a simple GUI that was run under the...
- 11 Oct 2013 13:37
- Forum: DOS Batch Forum
- Topic: My UAC function
- Replies: 28
- Views: 18528
Re: My UAC function
I need the technique to be like mine, the if errorlevel statement must be in the function. And I need the use switches. Sorry if old age has made me cynical, but this sounds to me like a request for assistance with a school's homework exercise, where the requirement is not to achieve a particular r...
- 17 Jul 2013 09:31
- Forum: DOS Batch Forum
- Topic: Why no time in TIME.TXT :- echo %time% > TIME.TXT > NUL
- Replies: 5
- Views: 5655
Re: Why no time in TIME.TXT :- echo %time% > TIME.TXT > NUL
Thanks for the replies.
I wildly experimented to find some sort of work-around before I started this topic.
I am much happier that I have a viable solution now that I understand what is happening.
Regards
Alan
I wildly experimented to find some sort of work-around before I started this topic.
I am much happier that I have a viable solution now that I understand what is happening.
Regards
Alan
- 17 Jul 2013 03:34
- Forum: DOS Batch Forum
- Topic: A different method to trim spaces from a string
- Replies: 16
- Views: 18899
Re: A different method to trim spaces from a string
Btw: I only talked about safeness, because the batch may be run from students (in my case) that wanted to gain more privileges. They executed such an unsafe batch and made themselfes to local admins (as our admin, who installed this batch made the system to compute it with admin rights... and i had...
- 17 Jul 2013 03:12
- Forum: DOS Batch Forum
- Topic: Why no time in TIME.TXT :- echo %time% > TIME.TXT > NUL
- Replies: 5
- Views: 5655
Why no time in TIME.TXT :- echo %time% > TIME.TXT > NUL
Why does NUL capture the text I intend for TIME.TXT ? I only seem to get the result I want if I use parenthesis, i.e. ( echo %time% > TIME.TXT ) > NUL I wasted an hour or two before I tried the parenthesis, and I would like to FULLY understand :- Why I need the parenthesis ; Any convenient alternati...
- 05 Jul 2013 13:11
- Forum: DOS Batch Forum
- Topic: DISKPART UNIQUEID=GUID failure. Why ? Any Alternatives ?
- Replies: 2
- Views: 8157
Re: DISKPART UNIQUEID=GUID failure. Why ? Any Alternatives
I tried several forums and had no success. Fortunately most of my 1 GB Samsung HDD was unallocated space, so I created on that the partitions with letters that I used on the WDC HDD. The WDC HDD is now a test platform for trying out various Data Recovery tools. The best of breed is the 20.6 MB free-...
- 02 Jul 2013 11:06
- Forum: DOS Batch Forum
- Topic: How to convert easily every TAB character to a Space.
- Replies: 6
- Views: 5650
Re: How to convert easily every TAB character to a Space.
Many thanks,
MORE is a perfect solution for me
Regards
Alan
MORE is a perfect solution for me
Regards
Alan
- 02 Jul 2013 06:23
- Forum: DOS Batch Forum
- Topic: How to convert easily every TAB character to a Space.
- Replies: 6
- Views: 5650
How to convert easily every TAB character to a Space.
I am using a utility that produces an output report upon a vast number of files. Every file is reported with its complete path and name on a separate line, e.g. W:\#1\ bookmarks-2012-03-10.json The TAB character between the path and the name is causing me grief, and I wish to remove each TAB, or rep...
- 28 Apr 2013 10:27
- Forum: DOS Batch Forum
- Topic: HELP - How to recurse a directory structure ?
- Replies: 10
- Views: 7312
Re: HELP - How to recurse a directory structure ?
I started this test from R:\LS-3.3.1\RecoveredData\_E_GPT_E__465.82 GB_NTFS\ and ran these three commands :- DIR /AD /S /B > MYLIST-1.TXT DIR /A-D /S /B > MYLIST-2.TXT DIR /A /S /B > MYLIST-3.TXT Results :- MYLIST-1.TXT Size 4 KB 46 Lines 113 characters maximum length R:\LS-3.3.1\RecoveredData\_E_GP...
- 28 Apr 2013 02:34
- Forum: DOS Batch Forum
- Topic: HELP - How to recurse a directory structure ?
- Replies: 10
- Views: 7312
Re: HELP - How to recurse a directory structure ?
Dirlist.txt has a maximum line length of less than 200 characters
It is 50985 lines in length and has a size of 4.32 MB (4,534,489 bytes) on my 64 bit Windows 7
Not sure about the size but assume the folder length is no problem
Regards
Alan
It is 50985 lines in length and has a size of 4.32 MB (4,534,489 bytes) on my 64 bit Windows 7
Not sure about the size but assume the folder length is no problem
Regards
Alan
- 27 Apr 2013 14:35
- Forum: DOS Batch Forum
- Topic: HELP - How to recurse a directory structure ?
- Replies: 10
- Views: 7312
Re: HELP - How to recurse a directory structure ?
Sorry, but no. I was hoping that your single line would recurse and process all of the 21 paths I have manually determined This is what I copy/pasted from my DOS screen when I ran my batch file T.BAT : R:\>T R:\LS-3.3.1\RecoveredData\_E_GPT_E__465.82 GB_NTFS The full path of is too long. R:\LS-3.3.1...
- 27 Apr 2013 10:58
- Forum: DOS Batch Forum
- Topic: HELP - How to recurse a directory structure ?
- Replies: 10
- Views: 7312
Re: HELP - How to recurse a directory structure ?
Thanks, I will give that a try and report back
I am afraid that I have been forgetting some of the techniques I was taught here a couple of years ago.
Regards
Alan
I am afraid that I have been forgetting some of the techniques I was taught here a couple of years ago.
Regards
Alan
- 27 Apr 2013 10:48
- Forum: DOS Batch Forum
- Topic: HELP - How to recurse a directory structure ?
- Replies: 10
- Views: 7312
Re: HELP - How to recurse a directory structure ?
I have many archives in several folders on an external HDD, and I wish to visit every subdirectory which holds a particular type of file This identifies every subdirectory that is of interest today R:\LS-3.3.1>DIR *-00-*.MRIMG /S | FIND "R:\" Directory of R:\LS-3.3.1\RecoveredData\_E_GPT_E...
- 27 Apr 2013 04:46
- Forum: DOS Batch Forum
- Topic: HELP - How to recurse a directory structure ?
- Replies: 10
- Views: 7312
HELP - How to recurse a directory structure ?
I need to obtain the Full path and name of all the files that match a chosen pattern that are within an archive that may have 3 (possibly 4) levels of sub-directories. This is the code which deals with every file that is within a single folder CALL :PATH "R:\LS-3.3.1\RecoveredData\_E_GPT_E__465...