Search found 43 matches

by Dragokas
07 Dec 2019 05:34
Forum: DOS Batch Forum
Topic: Christmas animation
Replies: 0
Views: 19187

Christmas animation

Hi!

Do you know any sites, where I can get a lot of such animation for New Year?
(how can I correctly make a google request for such type of anim?)

Under animation, I mean a method when you replace console screen with the almost same but a little changed graphics, so you see an animation.

Thanks.
by Dragokas
23 Mar 2015 15:12
Forum: DOS Batch Forum
Topic: NtfsDisable8dot3NameCreation policy works wrong
Replies: 4
Views: 11244

Re: NtfsDisable8dot3NameCreation policy works wrong

foxidrive, thanks. There are really my mistake. I set that value manually without restarting instead of using fsutil. I also tested it on XP. XP do not support value 3 and DeviceIoControl do not support query and set volume specific 8.3 flag. So, on Win7 I see that fsutil really has a bug. On the sa...
by Dragokas
23 Mar 2015 06:18
Forum: DOS Batch Forum
Topic: NtfsDisable8dot3NameCreation policy works wrong
Replies: 4
Views: 11244

NtfsDisable8dot3NameCreation policy works wrong

Hi ! According to MSDN , if we set policy for creation of file objects on format 8.3 here: HKLM\System\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation to value 3, I'm quote: 3: Disables 8dot3 name creation for all volumes except the system volume. But, in real, if we will do so and...
by Dragokas
18 Jul 2014 09:28
Forum: DOS Batch Forum
Topic: How to check for admin rights ?
Replies: 14
Views: 16970

Re: How to check for admin rights ?

I like one more code from there... with little change:

Code: Select all

set "Priv=OK" & ver |>NUL find "6." && WHOAMI /PRIV |>NUL find /i "SeTakeOwnershipPrivilege" || set "Priv=BAD"
by Dragokas
12 Jul 2014 14:16
Forum: DOS Batch Forum
Topic: How to check for admin rights ?
Replies: 14
Views: 16970

Re: How to check for admin rights ?

Sorry, but i don't understand, what do you talking about.
Bad english.
by Dragokas
12 Jul 2014 14:08
Forum: DOS Batch Forum
Topic: How to check for admin rights ?
Replies: 14
Views: 16970

Re: How to check for admin rights ?

Thanks, Compo.
It works great.
by Dragokas
12 Jul 2014 13:43
Forum: DOS Batch Forum
Topic: How to check for admin rights ?
Replies: 14
Views: 16970

Re: How to check for admin rights ?

not suitable.

Code: Select all

C:\Windows\system32>at
The AT command has been deprecated. Please use schtasks.exe instead.
The request is not supported.

C:\Windows\system32>echo %errorlevel%
1

C:\Windows\system32>ver
Microsoft Windows [Version 6.3.9600]
by Dragokas
12 Jul 2014 13:16
Forum: DOS Batch Forum
Topic: How to check for admin rights ?
Replies: 14
Views: 16970

Re: How to check for admin rights ?

Ok. My code must be run with admin privileges. I have a function in my code to prompt user for an elevation with UAC message. But there are two ways to run my.cmd: 1) Double click 2) Right Click -> run with admin privileges In the second case i do not need to call Elevate function. That's why first ...
by Dragokas
12 Jul 2014 11:14
Forum: DOS Batch Forum
Topic: How to check for admin rights ?
Replies: 14
Views: 16970

Re: How to check for admin rights ?

Ok. But what command you suggest to execute ?
by Dragokas
12 Jul 2014 07:25
Forum: DOS Batch Forum
Topic: How to check for admin rights ?
Replies: 14
Views: 16970

How to check for admin rights ?

How to do it correctly ?

Admin rights - it's mean when user prompts a UAC message and press OK button.
by Dragokas
06 Jul 2014 07:20
Forum: DOS Batch Forum
Topic: CURL. How to check if remote file is newer without download
Replies: 3
Views: 5404

Re: CURL. How to check if remote file is newer without downl

I can do it with comparing line "Last-Modified" of header with a local file. But it is too complex way. curl "http://example/file" --head HTTP/1.1 200 OK Server: nginx/42 Date: Sun, 06 Jul 2014 13:18:00 GMT Content-Type: application/octet-stream Content-Length: 151734680 Last-Mod...
by Dragokas
05 Jul 2014 09:55
Forum: DOS Batch Forum
Topic: CURL. How to check if remote file is newer without download
Replies: 3
Views: 5404

CURL. How to check if remote file is newer without download

Hi !

I use this code for downloading file if it is newer than local.

Code: Select all

curl.exe -# -z file -o file http://example.com/file


How can I do the same without downloading it ?

I read this manual: http://curl.haxx.se/docs/manual.html
but do not find anything helpful.

Thank's for your answers.
by Dragokas
13 Jun 2014 05:25
Forum: DOS Batch Forum
Topic: Extra 'Space' character in FOR-Pipe construction
Replies: 8
Views: 7939

Extra 'Space' character in FOR-Pipe construction

Hi ! I write this code to extract from all txt files the lines with 2 or more '.' character. @(for %a in (*.txt) do @(type %a& echo.)) | find ".." > new.txt All files have 1 string (no CrLf). That's why I use 'echo.' But new.txt have an extra 'space'-character on the end of each line. ...