If I type the name of the file into cmd in admin mode, it says that the
syntax incorrect.


On Wed, Jan 29, 2014 at 7:10 PM, Jacob Smith <[log in to unmask]> wrote:

> Wouldn't that keep it from running in the terminal also?
>
>
> On Wed, Jan 29, 2014 at 6:40 PM, Mark Rode <[log in to unmask]> wrote:
>
>> it is probably write protected, or protected from change in some way.
>> Find out what protections it has and then remove them ....start with
>> Attrib -s -h -r
>> or whatever is required... then don't forget to put back the protection
>> when you finish.
>>
>>
>> At 09:07 AM 1/29/2014, you wrote:
>>
>>> I have written the following commands to a batch file:
>>> if exist "C:\windows\system32\drivers\file.sys"
>>> rename "C:\windows\system32\drivers\file.sys" "file.wassys"
>>>
>>> else
>>> rename "C:\windows\system32\drivers\file.wassys" "file.sys"
>>> I run it as administrator, and I've also typed it into the terminal in
>>> admin mode. Neither one does anything, no errors or prompts, nothing. I
>>> know that the file exists and will for a long time. I've written a few
>>> variants trying to change the working directory first, but they didn't
>>> work
>>> either. what am I missing? I've run the rename command alone and it
>>> worked
>>> fine.
>>>
>>> --
>>>  Blessings,
>>> Jacob Smith
>>>
>>>
>>>
>>                  Visit our website regularly for FAQs,
>>               articles, how-to's, tech tips and much more
>>                          http://freepctech.com
>>
>
>
>
> --
>  Blessings,
> Jacob Smith
>
> Blessed are those who fear the Lord, who walk in his ways. Psalm 128:1
>



-- 
 Blessings,
Jacob Smith

Blessed are those who fear the Lord, who walk in his ways. Psalm 128:1

                  Visit our website regularly for FAQs,
               articles, how-to's, tech tips and much more
                          http://freepctech.com