Search found 494 matches

by npocmaka_
24 Jul 2013 13:55
Forum: DOS Batch Forum
Topic: batch file in standard user to be run in administrator mode
Replies: 4
Views: 1651

Re: batch file in standard user to be run in administrator m

There are no ways to bypass UAC for a limited account - AFAIK. You can schedule a task with schtasks with admin account that is triggered on event . And you can create an event log in application area without administrator permissions. But still creating an event with admin permissions will pop-up ...
by npocmaka_
23 Jul 2013 12:40
Forum: DOS Batch Forum
Topic: batch file in standard user to be run in administrator mode
Replies: 4
Views: 1651

Re: batch file in standard user to be run in administrator m

If you have the administrator [username/]password or your user has administrator privileges it is possible...
by npocmaka_
21 Jul 2013 02:30
Forum: DOS Batch Forum
Topic: Possible to convert M$ Word Doc into .TXT?
Replies: 15
Views: 6437

Re: Possible to convert M$ Word Doc into .TXT?

In fact the deleting is commented but could be uncommented. I'm copying to doskey to '.exe somewhere in the %PATH% so after that it can be called as '& . In vbscript this is a comment , but for the batch means execute '.exe and then the next command. As doskey does do nothing in bat file (especi...
by npocmaka_
20 Jul 2013 11:40
Forum: DOS Batch Forum
Topic: Study about moving the cursor up
Replies: 18
Views: 10404

Re: Study about moving the cursor up

oooh..
Multi-threading in batch....
by npocmaka_
20 Jul 2013 04:42
Forum: DOS Batch Forum
Topic: Running batch file from shared out folder
Replies: 7
Views: 3774

Re: Running batch file from shared out folder

try first to map the drive with NET USE ->http://ss64.com/nt/net_use.html
by npocmaka_
20 Jul 2013 01:19
Forum: DOS Batch Forum
Topic: need help of hybrid jscript from vb DateLastModified
Replies: 9
Views: 5156

Re: need help of hybrid jscript from vb DateLastModified

var args=WScript.Arguments; WshShell.AppActivate(args.Item(0)); n = fso.GetFile(WScript.arguments(0)).DateLastModified;) rewrite this to var args=WScript.Arguments; n = fso.GetFile(args.Item(0).DateLastModified); This is the way to get the arguments in jscript. Not sure if DateLastModified will work...
by npocmaka_
19 Jul 2013 16:39
Forum: DOS Batch Forum
Topic: Possible to convert M$ Word Doc into .TXT?
Replies: 15
Views: 6437

Re: Possible to convert M$ Word Doc into .TXT?

Samir wrote:I saw that and am totally confused. :?:



:twisted: :twisted: :twisted:

Do not hesitate and ask.I'll be glad to explain.
by npocmaka_
19 Jul 2013 16:23
Forum: DOS Batch Forum
Topic: need help of hybrid jscript from vb DateLastModified
Replies: 9
Views: 5156

Re: need help of hybrid jscript from vb DateLastModified

I don't think jscript has CStr and RightRight functions..
by npocmaka_
19 Jul 2013 05:30
Forum: DOS Batch Forum
Topic: Possible to convert M$ Word Doc into .TXT?
Replies: 15
Views: 6437

Re: Possible to convert M$ Word Doc into .TXT?

foxidrive wrote:That's an interesting use of doskey. :)

Subst.exe (and a bunch of exes in system32 that I don't know what in fact are doing) also can be used but I prefer doskey because I know that will do anything in a batch file and is fast enough.
by npocmaka_
19 Jul 2013 05:21
Forum: DOS Batch Forum
Topic: Key Press through Batch File
Replies: 2
Views: 5468

Re: Key Press through Batch File

You can use wscript sendkeys function.and AppActivate to send the keys to an application: m here's a sendkeys.bat: @if (@X)==(@Y) @end /* Harmless hybrid line that begins a JScript comment @echo off cscript //E:JScript //nologo "%~f0" %* exit /b 0 ***jscript part****/ var WshShell = WScrip...
by npocmaka_
19 Jul 2013 01:19
Forum: DOS Batch Forum
Topic: Possible to convert M$ Word Doc into .TXT?
Replies: 15
Views: 6437

Re: Possible to convert M$ Word Doc into .TXT?

This is a hybrid bat/vbscript and need to be saved as .bat: '>nul 2>&1|| @copy /Y %windir%\System32\doskey.exe %windir%\System32\'.exe >nul '&&@echo off && cls &&goto :end_vbs Set WordApp = CreateObject("Word.Application") WordApp.Visible = FALSE 'Open doc for r...
by npocmaka_
18 Jul 2013 14:50
Forum: DOS Batch Forum
Topic: Possible to convert M$ Word Doc into .TXT?
Replies: 15
Views: 6437

Re: Possible to convert M$ Word Doc into .TXT?

Yes , you can .But you'll have to use jscript, vbscript or powershell. Here's how you can open document->

http://msdn.microsoft.com/en-us/library ... =office.11).aspx

here are save constants
http://msdn.microsoft.com/en-us/library ... 39952.aspx


If have a time I 'll create a script tomorrow
by npocmaka_
06 Jul 2013 00:49
Forum: DOS Batch Forum
Topic: %~z1 question
Replies: 6
Views: 3958

Re: %~z1 question

There's one small issue with Endoro's code - if the file does not exists it will print that the file is empty : try this: setlocal enabledelayedexpansion set "empty=" if !empty! EQU 0 echo this will be printed endlocal I'd a similar problem here : http://ss64.org/viewtopic.php?id=1709 .And...
by npocmaka_
05 Jul 2013 02:29
Forum: DOS Batch Forum
Topic: Need to check file size through batch script.
Replies: 1
Views: 3204

Re: Need to check file size through batch script.

Code: Select all

@echo off
if exist "filename" (
  for %%F in ("filename") do set "file_size=%%~zF"
)

if defined file_size if %file_size%0 NEQ 00  (
  do something
) else (
  do something else
)