Search found 12 matches

by JoeNoName
08 Jan 2014 21:53
Forum: DOS Batch Forum
Topic: Simple Batch File "Input Error"
Replies: 29
Views: 17120

Re: Simple Batch File "Input Error"

Figured it out.

Somehow jscript.dll file became unregistered (or never was).

Code: Select all

regsvr32 %systemroot%\system32\jscript.dll


And now it works, how that happened I doubt I'll ever find out. Really appreciate everyone bearing with me through this, thanks for the help.
by JoeNoName
08 Jan 2014 11:19
Forum: DOS Batch Forum
Topic: Simple Batch File "Input Error"
Replies: 29
Views: 17120

Re: Simple Batch File "Input Error"

@foxidrive - the problem is located in this line cscript //nologo tmp.js >> tmp.js Which was in my original post and is most likely some kind of registry problem, as the rest of us have ALREADY found. So are you being intentionally dense? Or perhaps you lack the understanding. But thank you for all ...
by JoeNoName
07 Jan 2014 23:27
Forum: DOS Batch Forum
Topic: Simple Batch File "Input Error"
Replies: 29
Views: 17120

Re: Simple Batch File "Input Error"

@penpen - Could you explain that better? What is turned off? Thanks.
by JoeNoName
07 Jan 2014 18:43
Forum: DOS Batch Forum
Topic: Simple Batch File "Input Error"
Replies: 29
Views: 17120

Re: Simple Batch File "Input Error"

Okay so I've found the reason for the problem but it just brings up a new problem that I don't have a solution to. So checking out tmp.bat i found a problem. I removed the del tmp.bat line from the script and edited the tmp.bat file after the script ran and this is what the tmp.bat file contained: @...
by JoeNoName
07 Jan 2014 13:03
Forum: DOS Batch Forum
Topic: Simple Batch File "Input Error"
Replies: 29
Views: 17120

Re: Simple Batch File "Input Error"

@squashman: Do you understand that I'm running a cscript command on a javascript file? Do you understand that it's not a VB logo because I'm not calling any .vbs files? So your misunderstanding makes no sense. The output is an error, I can't make sense of it, that is why I've posted a question in th...
by JoeNoName
07 Jan 2014 12:11
Forum: DOS Batch Forum
Topic: Simple Batch File "Input Error"
Replies: 29
Views: 17120

Re: Simple Batch File "Input Error"

@Squashman: If you'd read the thread you'd understand. And it's not a big deal, I wasn't at the machine that created the issue, as I said earlier in the thread, if you had read it. I appreciate you trying to make my script "more better" but there obviously infinite ways to manipulate any c...
by JoeNoName
07 Jan 2014 09:43
Forum: DOS Batch Forum
Topic: Simple Batch File "Input Error"
Replies: 29
Views: 17120

Re: Simple Batch File "Input Error"

The code that is returning an error in it's entirety: echo var D = new Date() > tmp.js echo D = (D.getFullYear()*100+D.getMonth()+1)*100+D.getDate() >> tmp.js echo WScript.Echo( 'set YYYYMMDD='+D ) >> tmp.js echo @echo off > tmp.bat cscript //nologo tmp.js >> tmp.bat call tmp.bat mkdir "\\locat...
by JoeNoName
06 Jan 2014 22:34
Forum: DOS Batch Forum
Topic: Simple Batch File "Input Error"
Replies: 29
Views: 17120

Re: Simple Batch File "Input Error"

A) call tmp.bat is appearing before the cscript logo because Calling tmp.bat is what runs the cscript command. The line: cscript //nologo tmp.js >> tmp.bat doesn't actually run the cscript command it puts into into tmp.bat B) This is part of what I'm trying to find out. Because Calling tmp.bat is de...
by JoeNoName
06 Jan 2014 22:08
Forum: DOS Batch Forum
Topic: Simple Batch File "Input Error"
Replies: 29
Views: 17120

Re: Simple Batch File "Input Error"

Okay, so the batch file is NOT called tmp.bat it is called Backup.bat. The tmp.bat is temporary and is deleted and the end of the batch file. I think the order of operations is okay too, since i'm putting the cscript command into the tmp.bat file. Per my original post: cscript //nologo tmp.js >> tmp...
by JoeNoName
06 Jan 2014 21:23
Forum: DOS Batch Forum
Topic: Simple Batch File "Input Error"
Replies: 29
Views: 17120

Re: Simple Batch File "Input Error"

Pretty sure I have write access because I can see the tmp.bat and tmp.js being created in the folder when i run the script. I did put a pause in the script though, that's how I found the error. Otherwise the batch file started and closed without any indication that it failed. This is specifically wh...
by JoeNoName
06 Jan 2014 20:47
Forum: DOS Batch Forum
Topic: Simple Batch File "Input Error"
Replies: 29
Views: 17120

Re: Simple Batch File "Input Error"

I don't have access to the computer that is giving me the error right now, but will check first thing in the morning. The error is definitely coming from that part of the script. I suspect the error has something to do with that computer because the script works perfectly on two other machines. Some...
by JoeNoName
06 Jan 2014 19:34
Forum: DOS Batch Forum
Topic: Simple Batch File "Input Error"
Replies: 29
Views: 17120

Simple Batch File "Input Error"

New to the site, just want to say thanks in advance. As part of a larger batch file that involves creating a directory with today's date, copying and pasting files to be backed up, changing privileges and deleting files older then X days, I've run into a problem. This is where I run into my problem:...