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

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

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.
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:
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

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

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

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

Windows 10 Pro X64

You're welcom
My System SpecsSystem Spec

 Schtasks not working properly, Windows 7

Thread Tools

Similar help and support threads
Thread Forum
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 update not working properly.
Every time I click on Windows update it brings up the program, but the program is blank. Here's a picture of it to better show my problem. Diagnostic Report (1.9.0027.0): ----------------------------------------- Windows Validation Data--> Validation Code: 0 Cached Online Validation Code:...
Windows Updates & Activation
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
Windows Aero not working properly
Hi I have Windows 7 Ultimate 32-bit and yesterday it decided to revert to Windows basic after I launched a game and didn't go back to Aero after I quit. After a bit of digging around I managed to get the effects working again by restarting WDM and Themes services but I still get that horrible...
Themes and Styles
HIQ Recorder on Windows 7 not properly working
I recently installed Windows 7 on my computer, Dell Vostro 1400. Now the HIQ recorder (roemersoftware) and skype do not work properly. The recorder records all sounds: from the mp3 file and from the microphone. When I mute the microphone the recorder software tells me i do not have a sound card....
Sound & Audio

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 15:45.
Twitter Facebook Google+