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 > General Discussion

Vista - Collection of Batch files for everyone to use!

Reply
Old 09-17-2009   #11 (permalink)


Windows Vista Enterprise x64 SP2
 
 

Re: Collection of Batch files for everyone to use!

Didn't have a specific one in mind. Generally, when you pipe, it's something like this...

program.exe > myfile.txt

My System SpecsSystem Spec
Old 09-17-2009   #12 (permalink)


Ubuntu 9.10 64 Bit
 
 

Re: Collection of Batch files for everyone to use!

Quote  Quote: Originally Posted by lemur View Post
Didn't have a specific one in mind. Generally, when you pipe, it's something like this...

program.exe > myfile.txt
I just tried notepad and I couldn't seem to get it to work. I'm still looking for some answers. But I will get back to you
My System SpecsSystem Spec
Old 09-17-2009   #13 (permalink)


Win7x64
 
 

Re: Collection of Batch files for everyone to use!

Quote  Quote: Originally Posted by lemur View Post
What about creating a batch file that runs a utility that you can pipe the results to a text file? Then the user can upload that text file back to this forum.
Why don't they just pipe the results of the utility to a file, instead of running a batch file to run a utility to pipe the results to a file?
My System SpecsSystem Spec
Old 09-17-2009   #14 (permalink)


Ubuntu 9.10 64 Bit
 
 

Re: Collection of Batch files for everyone to use!

I got cmd to post a log to a file, but I can't get notepad, which is no big deal.
My System SpecsSystem Spec
Old 09-17-2009   #15 (permalink)


Windows Vista Enterprise x64 SP2
 
 

Re: Collection of Batch files for everyone to use!

:info
start systeminfo > sysinfo.txt
goto menu

(others? bootcfg, computerdefaults, ipconfig /all, and others from Windows Vista User Guide: Command, Command Prompt, CMD, DOS, MSDOS, MS-DOS, Screenshots, Preview, Help, Aero, Sidebar, Microsoft, XP, Server, Linux, Mac)
My System SpecsSystem Spec
Old 09-17-2009   #16 (permalink)


Ubuntu 9.10 64 Bit
 
 

Re: Collection of Batch files for everyone to use!

Quote  Quote: Originally Posted by lemur View Post
:info
start systeminfo > sysinfo.txt
goto menu

(others? bootcfg, computerdefaults, ipconfig /all, and others from Windows Vista User Guide: Command, Command Prompt, CMD, DOS, MSDOS, MS-DOS, Screenshots, Preview, Help, Aero, Sidebar, Microsoft, XP, Server, Linux, Mac)
Alright, I got it, I'm going to update my 'Vista diagnostic' pack to have some more options like system info and any others I can think of. thanks for the tips.
My System SpecsSystem Spec
Old 09-18-2009   #17 (permalink)


Vista home premium 64 bit
 
 

Re: Collection of Batch files for everyone to use!

For redirection all you need to do is use >
If you want a batch file to display the contents of a text file I belive the command is type,
example c:\type test.txt
If you have any problems getting the memory stick to autorun let me know, I have managed to get an index web page to autorun, it is a bit harder than a batch file but doable. If this post gets alot of intrest I may ask admin to turn it into a sticky.
My System SpecsSystem Spec
Old 09-18-2009   #18 (permalink)


Ubuntu 9.10 64 Bit
 
 

Re: Collection of Batch files for everyone to use!

Quote  Quote: Originally Posted by roy69 View Post
For redirection all you need to do is use >
If you want a batch file to display the contents of a text file I belive the command is type,
example c:\type test.txt
If you have any problems getting the memory stick to autorun let me know, I have managed to get an index web page to autorun, it is a bit harder than a batch file but doable. If this post gets alot of intrest I may ask admin to turn it into a sticky.
I got cmd to redirect system information to a text file by using this syntax in the batch file: cmd /c systeminfo > %userprofile%\desktop\sysinfo.txt

That works like a charm. I'm going to use that for running task also, so instead of people needing to install HJT they can just run a few bath files that will give us all the info we should need to fix a problem.

Thanks a lot roy for your tips, and that would be awesome if this made sticky material, but if not, oh well. It's still useful. Also, roy, how do I make a usb autorun with a batch file in it, per say, Vista Diagnostics?

Thanks everyone
My System SpecsSystem Spec
Old 09-18-2009   #19 (permalink)


Vista home premium 64 bit
 
 

Re: Collection of Batch files for everyone to use!

To autorun a memory stick you need a file called autorun.inf
The contents of this file would be as such

[autorun]
label=roys experiment
shellexecute=test.bat

The label will name your memory stick
Then the name of the batch file that will run

If you set the batch file to run an html file then it would be like this.

Main.mht

this allows you to design a main page using word that will execute in you web page viewer.

In short you have an index page like a web page called main.mht that will autorun from the memory stick. The batch file called test.bat calls the file main.mht.

There are alot of things you can do with memory sticks these days.
My System SpecsSystem Spec
Old 09-18-2009   #20 (permalink)


Vista home premium 64 bit
 
 

Re: Collection of Batch files for everyone to use!

I have made this a sticky for now, see how it goes.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Sort files collection ? VB Script
Help with IF in batch files General Discussion
Batch files Vista file management
Batch Files Vista General
In Vista, can .wps files be converted to .rtf files as a batch i.e.instead of one at a time? 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