Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Schtasks not working properly, Windows 7

29 Oct 2012   #21
Ztruker

Windows 10 Pro X64
 
 

Right, just as I suspected. The dir output shows

Directory of C:\Windows\2012.10.29

so when fs1.bat does this:

cd.. (this backs up to the Windows directory)
cd results (this doesn't work since there is no results directory under Windows)
md %date% (this should create the folder under Windows)
cd %date% (and this changes to it)

How does Computer Detective call fs1.bat? Maybe it needs to pass the path to itself that fs1.bat can then change to.


My System SpecsSystem Spec
.
29 Oct 2012   #22
neone

Windows 7 Ultimate x64
 
 

I added full path to results folder in ks1.bat, so now it knows where to create %date% folder and txt files.
Code:
cd %homedrive%%homepath%\Desktop\Useful_tools (earlier osnd)\ComputerDetective\results
I'll include in instructions of program that it needs to be put on Desktop, otherwise it won't work.

But I still want your help how to schedule ks1.bat no matter where Useful_tools is located.

That's how ComputerDetective calls ks1.bat:
Code:
schtasks /create /sc minute /mo %minutes% /tn "Computer Detective" /tr %homedrive%%homepath%\Desktop\Useful_tools\ComputerDetective\tasks\ks1.bat
My System SpecsSystem Spec
29 Oct 2012   #23
Ztruker

Windows 10 Pro X64
 
 

I can't come up with anything that will work at the moment, sorry.

Hopefully someone else has some ideas.
My System SpecsSystem Spec
.

30 Oct 2012   #24
Ztruker

Windows 10 Pro X64
 
 

What about setting an environment variable that contains the path to the location you want the date-time folder created in? Something like ComputerDetectivePath. It could be part of the installation instructions. Then the fs1.bat file could do a

cd /d %ComputerDetectivePath%
My System SpecsSystem Spec
30 Oct 2012   #25
neone

Windows 7 Ultimate x64
 
 

Good idea. Today I showed my work and got 10. Thanks for helpful suggestions.
My System SpecsSystem Spec
30 Oct 2012   #26
Ztruker

Windows 10 Pro X64
 
 

You're welcom
My System SpecsSystem Spec
Reply

 Schtasks not working properly, Windows 7




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows Explorer is not working properly.
Hi everybody. Dr. Nick I have a problem for about 1 month, and i haven't got rid of it. When I start Windows 7, it works fine for a random time (it can be 15 minutes, it can be 5 hours) But when it happens, i get this when I do some actions like Opening "Computer": Picture 1 Opening...
General Discussion
Browsers not working properly on windows 7
I have two problems. when I use internet explorer, it constantly flickers, especialy during videos. When I use google chrome it doesn't flicker but youtube freezes up
Browsers & Mail
windows not working properly
Installed Windows 7 on a new build-ssd. Windows loaded and worked properly, and was able to access anything I tried to. Installed driver for graphics card. After restart, windows shows desktop background. No icons and unable to open start menu from windows key. I am able to right click...
BSOD Help and Support
My Windows Explorer is not working properly
I'm using windows 7 ultimate version 6.1 ,wen i start my computer it logon but after nothing is displayed, only blank screen is displayed. but i can operate the system via task manager, for ex:to open the logical drive i wil press ctrl+alt+del ->taskmanager->new task->run->e: ,then my logical drive...
BSOD Help and Support
9500GT not working properly in Windows 7?
I am coming to Windows 7 from Vista 64bit Ultimate. On Vista I was able to get aero enabled and my system scored a 4.7 on the winsat tests. When I did a clean install and went to Windows 7 Ultimate 64bit, my aero doesn't want to initiate. I also cannot complete my winsat test because when it...
Graphic Cards


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:36.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App