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: Help Automatating CMD Commands

02 Dec 2012   #11
UsernameIssues

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by pedroc1999 View Post
...this is my first batch i make and it turned out to be 3500+words so i started big....
Congrats - keep learning :-)


My System SpecsSystem Spec
.
03 Dec 2012   #12
Pedroc1999

Windows 7 Ultimate x86
 
 

Thank you. I got the sleep command from windows resource kit tools which i found is a must.my batch will check for its existance and let you continue the backup if you have it and launch the installer if it isnt found.i have to ask what ste those extra tools for.....i have some understanding of LUA is it possible to run lua commands from cmd
My System SpecsSystem Spec
03 Dec 2012   #13
Pedroc1999

Windows 7 Ultimate x86
 
 

here is the near final version.

download the 2 files
rename batch to .cmd (this is only because sevenfroums wont let me upload .cmd files
put the 2 files in one folder
run the cmd file (previously batch)



how woudl i do the day-month-year-time thing?
My System SpecsSystem Spec
.

03 Dec 2012   #14
Pedroc1999

Windows 7 Ultimate x86
 
 

im sorry but i cant upload the files because they are too big
My System SpecsSystem Spec
03 Dec 2012   #15
cytherian

Windows 7 Home Premium x64
 
 

You might want to consider setting up variables at the beginning with constants. That way you have just one place to change the values.
My System SpecsSystem Spec
03 Dec 2012   #16
Pedroc1999

Windows 7 Ultimate x86
 
 

I have done that. Il have to upload it mediafire so you guys can see it
My System SpecsSystem Spec
04 Dec 2012   #17
UsernameIssues

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by pedroc1999 View Post
....i have to ask what ste those extra tools for.....i have some understanding of LUA is it possible to run lua commands from cmd
If you use a scripting tool like AutoIt (or AutoHotKey) you can write a script to do what you want without the user dealing with a command line interface.

For instance - your script can start when Windows starts and run all of the time (always watching for the phone to be connected). Once the phone connects, a tray tip (balloon) could popup reminding the user to backup the phone's files.... prompting the user to press a certain key combo to start the backup process.

LUA is not normally used as part of an AutoIt script. You don't need to know anything about LUA to use AutoIt. LUA is used by AutoIt devs to customize how the SCiTE editor supports writing and debugging the AutoIt code as you write/test your script. You don't have to use SCiTE - you can use Notepad to write scripting code if you want.

Again, I don't want to point you away from working with the command line interface (CLI) - too few people are learning that interface these days... but once you have things working as desired via CLI, consider recoding it using AutoIt or AutoHotKey to make your backup tool more user friendly.
My System SpecsSystem Spec
04 Dec 2012   #18
Pedroc1999

Windows 7 Ultimate x86
 
 

is there some sort of tool that can convert my batch into a autoitfile without having to write the script out again
My System SpecsSystem Spec
04 Dec 2012   #19
UsernameIssues

W7 Pro SP1 64bit
 
 

Not that I know of.
My System SpecsSystem Spec
04 Dec 2012   #20
Pedroc1999

Windows 7 Ultimate x86
 
 

ok, if i do stick with batch (which i might as learning a new language isnt exactly easy) Is there a program that can at least give it a gui so it looks a bit better?
My System SpecsSystem Spec
Reply

 Help Automatating CMD Commands




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
How to do global commands
I recently installed a screesaver that, after 15 minutes of inactivity, The screensaver displays a warning and 60 seconds later issues a log off command. Have seven standard user accounts and had to install the screensaver in each of them. Can I do this globally so that I only have to do it once. ...
General Discussion
Definitions of Commands
I often wondered what difference , if any , there is between the following commands: FORMAT WIPE DELETE with reference to hard drives.
General Discussion
Bat commands..
Okay im trying to make a mini-fool for my friend :D And i want to my friend donot see the bat file Is this the code to he cant see it? attrib +h %0 Thanks. - kuchiyo
General Discussion
.bat Help.. Is these commands safe?
I just got installed the Luna theme to windows.. But at a bat file it's trying to do that: ren %windir%\explorer.exe explorer.exe.bak move /y "Resources\x86\explorer.exe" %windir% taskkill /F /IM explorer.exe start %windir%\explorer.exe Is that safe to replace the explorer.exe with a...
Themes and Styles
Windows Run Commands
I certainly hope someone here can help me. It used to be that the commands I typed in the RUN window where there when I returned. Not so now, the window's completely blank, and I have to retype where I want to go or open every time. :cry: What must I do to make the programs hold? Duchess
General Discussion
Need help wih a .bat file commands
Im not sure if this is a grate place to ask this.. but... well Windows does speak DOS commands... well sorta :D anyway, im trying to set up a batch file that would first transfer all the files and subfolders from "a" folder to "b" folder, and then would delete all the subfolders and files in "a"...
Software


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

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App