Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > Chillout Room

Vista - Developing Software

Reply
 
Old 08-12-2008   #1 (permalink)


vista ultamate 64bit
 
 

Developing Software

Hi
I have decided once again to jump head 1st into the world of Software developing
Its a big task/challenge for a n00b like me.... im only learning....

Anyways i have decided to make a simple piece of software that can help clean up temporary files that the likes if win zip and software intallers ect decide to leave behind
for example this folder C:\Users\username\AppData\Local\Temp

i already have a small list of folders that are relativly safe to empty however i need your help as it may very well be possiable that you guys/gals will know of more folders that can be cleaned out

so could i ask you guys if you could list all the folders that you know are safe for deletion in vista 32, 64 bit and XP 32,64 bit

My System SpecsSystem Spec
Old 08-12-2008   #2 (permalink)


vista ultamate 64bit
 
 

Re: Developing Software

Any one know the source code to restart vista 32bit and 64 bit
My System SpecsSystem Spec
Old 08-12-2008   #3 (permalink)


Vista Ultimate x64 MAK, OpenSolaris 5, Gentoo 2008.1....
 
 

Re: Developing Software

source code, no, but I do know hte commandline:

reboot
Code:
shutdown /r /now
shutdown
[code] shutdown /s /now[code]

You can also use a /t switch and specify the time in seconds, as in
Code:
shutdown /r /t 600
which will reboot in 10 minutes.

Here is a code I got from MVP Ramesh's site for a VB code to run shutdown:

Code:
'Launches "shutdown.exe /r /t xxx" - This script is a workaround...
'... for the 600 seconds time-out limit in Vista.
'Created on March 30, 2007
'Copyright © 2007 Ramesh Srinivasan.
'Winhelponline.com - http://www.winhelponline.com

Set objShell = CreateObject("Wscript.Shell")
strMsg = "Enter the reboot timeout period (in Seconds)"
iSec = trim(InputBox (strMsg,"Shutdown timeout value",750))
if iSec = "" then wscript.quit
if iSec > 600 then
     iSleep = int(iSec) - 600
     iSleep = iSleep * 1000
     WScript.Sleep iSleep
     objShell.Run "shutdown.exe /r /t 600"
else
     objShell.Run "shutdown.exe /r /t " & iSec
end If
HTH
My System SpecsSystem Spec
Old 08-12-2008   #4 (permalink)


vista ultamate 64bit
 
 

Re: Developing Software

thanx.... it took some working out
it was
Code:
Shell("C:\Windows\System32\cmd.exe /c Shutdown -r -t 00")
I forgot to mention im using visual basic
i got 2 projects on the go and 1 of them is ready for testing, i just have to try work out how to publish it as a simple .exe rather than an installer
My System SpecsSystem Spec
Old 08-12-2008   #5 (permalink)


Vista Ultimate x64 MAK, OpenSolaris 5, Gentoo 2008.1....
 
 

Re: Developing Software

Curious - why not write it up as a VBScript, that would be easily distributable with no installers to worry about?
My System SpecsSystem Spec
Old 08-12-2008   #6 (permalink)


vista ultamate 64bit
 
 

Re: Developing Software

Quote  Quote: Originally Posted by johngalt View Post
Curious - why not write it up as a VBScript, that would be easily distributable with no installers to worry about?
because im a total n00b when it come to writing software
anyway i was able to locate the executable file and it seems to work just fine
all i need now is conformation from you guys if you would be so kind

this is a very simple application to turn UAC on or off which i think might be handy for the less computer savvy, it may also be useful for brinks tutorials
Vista UAC Switch
Attached Images
 
Attached Files
File Type: zip Vista UAC Switch.zip (137.9 KB, 6 views)

Last edited by ripbox; 08-12-2008 at 10:05 PM.. Reason: Found typo in software
My System SpecsSystem Spec
Old 08-12-2008   #7 (permalink)


Vista Ultimate x64 MAK, OpenSolaris 5, Gentoo 2008.1....
 
 

Re: Developing Software

My System SpecsSystem Spec
Old 08-12-2008   #8 (permalink)


vista ultamate 64bit
 
 

Re: Developing Software

oh yes i know about that and to be honest im not even trying to compete with it
i am simply learning VB as a hobby.... maybe a for a future career... i wanted to keep it simple and basic, well actually Vista UAC Switch wasn't even the in the pipeline... i just got side tracked lol
now i need to get on with what i started "Disc Junkie" in basic terms a piece of software pre-set to help aid the less savvy of us all to clean out tempoary files left behind from installed/extracted software ect ect ect... its actualy turning out mor complicated than i 1st anticipated

Any how if anyone would like to try Vista UAC switch and give me some constructive critisism please feel free
My System SpecsSystem Spec
Old 08-13-2008   #9 (permalink)


Mojave Ultimate x64
 
 

Re: Developing Software

Quote  Quote: Originally Posted by ripbox View Post
forgot to mention im using visual basic
Are you using old school VB or VB.NET?
My System SpecsSystem Spec
Old 08-13-2008   #10 (permalink)


Vista Ultimate x64 MAK, OpenSolaris 5, Gentoo 2008.1....
 
 

Re: Developing Software

Post it here so we can try it - I'll definitely give it a shot - after all, I know how to turn UAC back on manually if all else fails....
My System SpecsSystem Spec
Reply

« Tags | New tutorial »
Thread Tools


Similar Threads
Thread Forum
Developing for Windows 7. Vista News
Windows, Office and other software for $3 to people in developing nations Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46