Page 1 of 2

Replacement Commands For Windows 7 (x64)

Posted: 25 Sep 2014 23:29
by pratik151192
task completed

Re: Replacement Commands For Windows 7 (x64)

Posted: 26 Sep 2014 03:42
by foxidrive
pratik151192 wrote:and resolving this is of utmost importance at the moment.
Kindly help.

Thank You


Sure thing! Give us some details about the task and show us the batch file so we can understand what you are intending to do, and how it is being done.

Re: Replacement Commands For Windows 7 (x64)

Posted: 26 Sep 2014 07:15
by Squashman
pratik151192 wrote:'-rw-r-----' is not recognized as an internal or external command, operable program or batch file.

'none' is not recognized as an internal or external command, operable program or batch file.

Obviously these are not commands so it has something to do with your code that is not right. Without seeing the real code it would be really hard to help you.

Re: Replacement Commands For Windows 7 (x64)

Posted: 26 Sep 2014 09:03
by Dos_Probie
Just save your batch files to desktop to error check:
>> right-click and choose edit
>> Once open just click on a blank area and do Ctrl+F to bring up the Find box
>> Type in the problem words such as ie. nope, rw-r etc.
>> then look at your script for the errors lines.
~DP

pratik151192 wrote:debug' is not recognized as an internal or external command, operable program or batch file.

'-rw-r-----' is not recognized as an internal or external command, operable program or batch file.

'none' is not recognized as an internal or external command, operable program or batch file. goto was unexpected at this time.

These are the three unrecognized commands for me when I am trying to execute the batch file. On doing some research, I found out that the debug command is no longer supported for 64 bit machine. Whereas, for others I am clueless, not getting anything in any forum, please help me to resolve the issue. I am moving these batch files from SQL Server 2000 to SQL Server 2008 R2, and resolving this is of utmost importance at the moment.
Kindly help.

Thank You

Re: Replacement Commands For Windows 7 (x64)

Posted: 26 Sep 2014 19:24
by ShadowThief
"-rw-r-----" is *NIX file permissions...
"none" could be anything.

Post your code.

Re: Replacement Commands For Windows 7 (x64)

Posted: 27 Sep 2014 00:17
by pratik151192
task completed

Re: Replacement Commands For Windows 7 (x64)

Posted: 27 Sep 2014 06:53
by aGerman
What are you trying to do? Mixing up batch and ftp?
You didn't post your code yet...

Regards
aGerman

Re: Replacement Commands For Windows 7 (x64)

Posted: 27 Sep 2014 07:12
by Dos_Probie
OP said that "resolving this is of utmost importance" and Still after Several requests for his Batch Code He Still has not responded back with it..
~DP

Re: Replacement Commands For Windows 7 (x64)

Posted: 27 Sep 2014 08:51
by foxidrive
Dos_Probie wrote:and Still after Several requests for his Batch Code He Still has not responded back with it..


All we can do is ask for the details and if the OP replies without the requested details then maybe the threads should be locked
with a note that the OP can PM a mod to unlock the thread (assuming they will provide the details).

Re: Replacement Commands For Windows 7 (x64)

Posted: 27 Sep 2014 10:08
by ShadowThief
pratik151192 wrote:The actual error is: blahblahblah

This is completely useless.

Open the batch script in a text editor, select all, copy, and paste it here.

Re: Replacement Commands For Windows 7 (x64)

Posted: 27 Sep 2014 10:12
by ShadowThief
I take that back; it's not completely useless, since you apparently (luckily) didn't start the script with @echo off.

Post the contents of \\B6cold\FTPShare\Shared\MDC\DANZAS\Process\catreps\danzas_catreps_dir.bat

Re: Replacement Commands For Windows 7 (x64)

Posted: 28 Sep 2014 00:11
by pratik151192
task completed

Re: Replacement Commands For Windows 7 (x64)

Posted: 28 Sep 2014 00:52
by ShadowThief
I'm not seeing anything in the code you posted that calls debug, but your script does call a couple of other scripts. Take a look at both created.bat and kixRemoveBlanks.bat and see if either one of those either uses the debug command or calls a script that does.

Re: Replacement Commands For Windows 7 (x64)

Posted: 28 Sep 2014 00:55
by pratik151192
task completed

Re: Replacement Commands For Windows 7 (x64)

Posted: 28 Sep 2014 01:02
by foxidrive
To the OP:

From your log
danzas_catreps_dir.log does not contain .txt in that letter case
and the variable fn is set to none in the 2nd line so it exits.

There is no problem there at all.

created.bat and kixRemoveBlanks.bat aren't running in the sample batch file output you posted
but the problem is likely to be that debug.exe is not available on a 64 bit version of Windows.