Computer Hope

Microsoft => Microsoft DOS => Topic started by: Blisk on March 11, 2019, 12:04:26 PM

Title: Scripts strange behaviour
Post by: Blisk on March 11, 2019, 12:04:26 PM
I don't know what happend with these scripts.
On one computer it works ok on another I get this temporarry files on C:disk which are in real scripts with some hash name.
Some show on and some doesn't.
what can cause this on some computers and on others not and all are on the same settings.
Title: Re: Scripts strange behaviour
Post by: Salmon Trout on March 11, 2019, 02:00:39 PM
What does 'these scripts' mean?
Title: Re: Scripts strange behaviour
Post by: Blisk on March 12, 2019, 09:51:13 AM
batch, which is runned by task scheduler
Title: Re: Scripts strange behaviour
Post by: Salmon Trout on March 12, 2019, 12:18:15 PM
1. Think what you were doing at 18.45 on 11th March.
2. Open one of the .bat files in Notepad and inspect the contents.
3. Consider if you have a virus.

Please answer ALL of these questions.
Title: Re: Scripts strange behaviour
Post by: Blisk on March 12, 2019, 12:22:05 PM
1. Think what you were doing at 18.45 on 11th March.
2. Open one of the .bat files in Notepad and inspect the contents.
3. Consider if you have a virus.

at that time script is runned by task scheduler.
I have alredy checked viruses but there is none of it
Title: Re: Scripts strange behaviour
Post by: Salmon Trout on March 12, 2019, 12:27:22 PM
Did you do the Notepad thing?
Title: Re: Scripts strange behaviour
Post by: Blisk on March 12, 2019, 12:30:49 PM
Did you do the Notepad thing?

yes, two times.
funny thing is on win 10 that is not happening but on win 7 on some PCs.
Title: Re: Scripts strange behaviour
Post by: Salmon Trout on March 12, 2019, 12:38:52 PM
What did you see in Notepad??????????????
Title: Re: Scripts strange behaviour
Post by: patio on March 12, 2019, 12:51:42 PM
+ + + 1...
Title: Re: Scripts strange behaviour
Post by: Salmon Trout on March 12, 2019, 12:54:22 PM
+ + + 1...

:)
Title: Re: Scripts strange behaviour
Post by: patio on March 12, 2019, 01:12:30 PM
He needs to help us help him.....with more info.
Hopefully that'll happen...maybe not.
Title: Re: Scripts strange behaviour
Post by: Salmon Trout on March 12, 2019, 01:32:32 PM
Surprise batch file in root of C:\ ... first thing to do: find out what it does.
Title: Re: Scripts strange behaviour
Post by: Blisk on March 12, 2019, 01:36:37 PM
Surprise batch file in root of C:\ ... first thing to do: find out what it does.

Yes I checked that.
It is not one batch but all of them.
batch like copy files, check archive, check installed software, etc.
all of them on some windows 7 PC write directly on C: when batch is started than when batch finish it is gone, but not for all.
this is one of it

Code: [Select]
for /f "delims=" %%d in ('dir /s /b /ad %1 ^| sort /r') do rd "%%d" 2>nul
Title: Re: Scripts strange behaviour
Post by: Salmon Trout on March 12, 2019, 01:40:28 PM
I still don't understand. Can you make a bigger effort with your English? Are you saying you made these scripts yourself?

Title: Re: Scripts strange behaviour
Post by: Blisk on March 12, 2019, 01:47:35 PM
I still don't understand. Can you make a bigger effort with your English? Are you saying you made these scripts yourself?

yes or copy it from internet, I basically know what they do and it was tested.
problem is I latelly notice they write somekind of temporarry files on C:
question is why? probably some settings in windows?
it is strange for me as it is for you, because basically all should start in c:\windows\system32
Title: Re: Scripts strange behaviour
Post by: Salmon Trout on March 12, 2019, 02:03:30 PM
This is what I am asking. I will try to make it simple. These batch scripts you find in the c:\ (root of C drive) folder, with names like DDA5.bat. Did you put them there yourself, or did the scheduled task? Also, when you created the scheduled task, what folder did you select for the batch script(s) to run in?
Title: Re: Scripts strange behaviour
Post by: Blisk on March 13, 2019, 03:43:07 AM
This is what I am asking. I will try to make it simple. These batch scripts you find in the c:\ (root of C drive) folder, with names like DDA5.bat. Did you put them there yourself, or did the scheduled task? Also, when you created the scheduled task, what folder did you select for the batch script(s) to run in?
No that files on C: was created by batch or task scheduler and should not be there. I didn't assign anything I left that form empty now I have changed in task scheduler to start in c:\windows\system32
Now I am waiting for results. I will post results