Windows Batch Files Are Written In Basic?
Aug 24, 2012This may seem a really obvious question, but aren't Windows Batch files written in Basic?
View 1 RepliesThis may seem a really obvious question, but aren't Windows Batch files written in Basic?
View 1 RepliesI am trying to create a batch file that runs 3 other batch files. Right now, it works fine using the call command on each other batch file. However, these other batch files take awhile to run. and so the entire process takes a very long time, since each "sub" batch file is run only after the previous one is finished.I was wondering if there is a command or way to start a batch file fro the top-level batch file, then go on and start the next batch file before the previous one is finished. In other words, I want the sub batch files to run in parallel in the background. (similar to the '&' in Unix).
View 1 Replies View RelatedOk, I never got this info or 'problem' on Vista (32bits Ultimate)
Now on Windows 7 (32bits Ultimate) sometimes when I put a full DVD/CD full (I mean not empty) on the drive the explorer show me this message:
And it's always this file: desktop.ini So, how can I stop that annoying message?
hefrom few days there is a problem in my hp laptop.files cannot be written to any pendrives from my laptop..but i can copy files to my laptop when i insert the pendrive.
View 2 Replies View RelatedSo I'm trying to make a personal shortcut on my computer to change a password using the shiftkeys .exe (C:WindowsSystem32sethc.exe) which can be done from setup.I'm looking to design this because I frequently deal with friends and family who have forgotten passwords, as well as my purchasing used computers.I want to automate the process, but I've hit a problem, which is making the batch file remove itself.I have a .exe file replace sethc.exe, with sethc.exe renamed to sethc.exe.I'm using the following lines Code: del sethc.exeren sethc2.exe sethc.exedel %0 The batch file deletes itself successfully (del %0), but it's completely failing at the removal of the .exe and the renaming. I've tried changing the targeting, checking the syntax, but as far as I can tell, everything checks out, yet it still fails.
View 6 Replies View RelatedI have searched all over the Internet looking for how to associate certain extensions with certain programs using a .bat file... but no luck. I have spent about two hours experimenting. I'm able to do this from the command prompt: Code: ASSOC .cpp=C++_Source_Code FTYPE C++_Source_Code=E:Notepad2.exe %0 I created a small hi.cpp file to test this. It works perfectly. The command line is E:Notepad2.exe E:hi.cpp just like it should be.
However, doing the same thing from within a batch file yields the command line E:Notepad2.exe E:assoc.bat which opens my batch file when i double-click on hi.cpp... Is it even possible to perform this association from within a batch file? I have a LOT of different file types to register, and i don't want to spend 20 minutes every time i log on associating these extensions by hand.
I recently got a new laptop running Win 7 Pro 64-bit and as part of my initial third-party software installations I inadvertently overwrote the 'Path' environment variable (instead of appending to it). I subsequently tried adding c:windowssystem32; to it but don't know if this is doing anything. I have not managed to find any definitive information on what the Path ev should be on a new Windows 7 64-bit install.The thing is I loaded a batch process which I had on another Win 7 (32-bit) system but when I key the bat filename in cmd.exe (without the extension or double-click it) I get this error:"The syntax of the command is incorrect."If I key the bat filename with the extension, it runs but then stops because it seems not to recognize another program which the bat file calls even though I have the Path ev set for that program.
View 2 Replies View RelatedMy temporary folder has been have batch files created in it every 15 seconds or so. My mouse is the arrow with the busy circle at 2'oclock of it constantly, so something is running. I checked my processes and they seemed to all be normal. I updated everything including windows.net 4 so I don't know what else to try.
It is Windows 7 64bit Home
i3 Processor w/ 4gb RAM
And the batch files all have been 6 digits numbers increasing in numbers so it would be like 178521 and the next one would be 178762 etc. There are two conhost.exe running.
I have a quick question about compressing a bunch of log files that have specific years at the end of their file names.[code When the above is executed, it looks for an "archives" folder. If it's not there, it tries to create it as a place to store the yearly ZIP archives (notice the years are in bold in the above list of example files). Beyond that, it just goes through steps of reading the file names and parsing the name itself if and only if they're of type *.log. As you can see, I'm still working on this but wanted to understand why "ECHO is off." keeps repeated during runtime... I thought I had it set to OFF. It has me stumped.
View 9 Replies View RelatedI need to read several .txt files and search them for a specific string, lets say "key1" and "key2." If the file has key1, then it needs to be moved into directory1. If the file has key2, then it needs to be moved to directory2. There's no telling ahead of time what line the string is going to be on, so I'm guessing I could use "Find" to search for the key? Then how do I loop through all the files, read them, then sort them into the different directories?
View 1 Replies View RelatedI require a batch file or free utility that i can redistribute from my web site to other users, (gamers) that will copy the contents of a directory inside their game to a new location and re-name the directory at the same time. Something like this; Copy "GenesisVehicleruck diesel4tonbaker"to "GenesisVehicleruckdiesel4tonbutcher".The batch file needs to be run without the need for a command line box being opened, that is, if the user can double click on it or run it with a 'right click' that would be great. Problem there is, I maybe need an exe file not a batch file. The other part of the problem is that the folder to be copied may or may not be in the same location on every PC that runs the file. It may be the case that the 4tonbaker folder is on; [code] and I require the end user to have no need to know, just for the directory to be copied and renamed when and where it is found.If possible I then want the batch file to perform a second task. I want to distribute a folder, lets say it is 4tonbutcher and in that folder there are files lets say doc1.txt, doc2.txt and doc3.txt.On any given users PC 4tonbaker has these same named files but the content is different to the ones in my folder 4tonbutcher, I want to update the newly created folder, 4tonbutcher with the new txt files I distribute.
So, User downloads a folder called 4tonbutcher from my site.Batch file copies and renames a folder from a location on the users PC, "Genesis Vehiclesruckdiesel4tonbaker" to "Genesis Vehiclesruckdiesel4tonbutcher".Batch file copies doc1.txt, doc2.txt and doc3.txt from the downloaded folder to the newly created folder 4tonbutcher.
I just downloaded all of the Google Web Fonts and they were each downloaded into their respected folders, so instead of clicking on folder after folder and right clicking after right clicking and finally installing each and every font;
How can I create a command prompt (batch) file so the prompt can search the main folder where all the font folders are, grab any and all TrueType Font files and move or copy them into another single folder?
I have a simple batch file to load multiple files with one click, but it's not working.
When I run it, it simply very quickly pops up the cmd dialog, which quickly disappears, and nothing is loaded.
I've tried 'running as administrator' - same problem.
File is xxxxx.bat
I've even tried the fail safe:
start /d C:\Windows\System32\calc.exe
and that doesn't work, so it's not a error in my paths... for some reason, it just won't load...
Worked in XP fine...
Is there a different technique in 7?
Basically, end result, want to open two programs with one click (one icon on taskbar).
I have sony vio pre-installed with Windows Vista.As Vista was very slow I formatted the system and installed Windows 7.Now I able to run DVD as well CD, but when I insert rewritable CD or DVD it does not detect and on clicking on drive a massage comes as 'pl insert the disc.'
View 1 Replies View RelatedI have a folder with around 2000 files in it. I want to be able to copy certain files from this folder (normally around 40) and place them in a brand new folder, I want to be able to do this with nothing more than a txt file that has all the file names I need copying in it with every file name on a separate line.I receive around 10 new txt files each day so you can imagine how tedious it is searching through 2000 files, picking out the 40 I need, times a day everyday.To make things even more complicated, the txt files I receive don't always have the correct file names in them, maybe there's a misspelling or a word or two missing for some of the names. That's ok when I'm going through picking out the files I need to copy myself because I can normally tell which file is being requested, but I can't see it being so easy for a program or whatever to do, I'm guessing it'll need to have a search feature where it picks out the most likely file.I'd like it to be as automated as possible. I receive the txt file, make sure each file name is on a separate line then a program or script or whatever goes out and picks out the files (or most likely files for the name's that aren't exact matches) and copies them into a brand new folder (which I'd like to be the same name as the text file it's using to choose the files).
View 5 Replies View RelatedI have win 7 home basic in one of my laptop. I wanted to know if all my personal files and programs like ms office will go if I upgrade to win 7 ultimate. I have ultimate's cd with me. I just wanted to know if I will lose all my programs if I upgrade from home basic to ultimate.
View 4 Replies View Relatedtype written wood cannot keep upi with keyboard - How do I fix this?
View 1 Replies View RelatedI have installed Word 2007, the problem I have is that when I want to type something the blank page always appears to the left of my screen. This is frustrating me as I like to type with the page in the middle of the screen.
View 1 Replies View RelatedI over wrote or replaced one excel file with another. I want the original file back. How can I recover it?
View 8 Replies View RelatedHow to create a batch file that will move files based on the file type?My Requirement : I need a batch file to copy all .doc files in all my HardDisk to aremovable disk say (Z: drive) . Can anyone make it possible using a batch file
View 4 Replies View RelatedI keep getting the following errors on startup and then after awhile they will pop up again and again.
Werfault.exe - Application Error
The instruction at 0x73f61320 referenced mamory at 0x73f61320. The memory could not be written.Click OK to terminate the program
wermgr.exe
(Same message and memory location)
Here is the TSG SysInfo log:
Tech Support Guy System Info Utility version 1.0.0.2
OS Version: Microsoft Windows 7 Home Premium, Service Pack 1, 64 bit
Processor: AMD A6-3400M APU with Radeon(tm) HD Graphics, AMD64 Family 18 Model 1 Stepping 0
Processor Count: 4
RAM: 5610 Mb
Graphics Card: AMD Radeon(TM) HD 6520G, 512 Mb
Hard Drives: C: Total - 595354 MB, Free - 401604 MB; D: Total - 14820 MB, Free - 1647 MB; F: Total - 99 MB, Free - 89 MB; G: Total - 953867 MB, Free - 877240 MB;
Motherboard: Hewlett-Packard, 358B
Antivirus: Norton Internet Security, Updated and Enabled
Can someone show what a batch file would look like for use in Win7?Secondly the method for writing same batch file please.I want copy a file or files to the desktop before shutting down or rebooting and secondly copy same file/files to their original location after booting.
View 2 Replies View RelatedHow can I convert a batch file (script) into .exe file in Windows 7?
View 4 Replies View RelatedTried writing a batch file to open a few programs I use together regularly, but which I don't want all the time on startup.I've tried:
start �Maxivista� /d �C:Program FilesMaxiVista Pro ServerMaxiVistaAll.exe"
start �Netbeans� /d "R:Program FilesNetBeans 6.9.1in
etbeans.exe"
start �OfficeTime� /d "C:Program Files (x86)OfficeTimeOfficeTime.exe"
Start "WampServer" /d "R:wampwampmanager.exe"
[code]....
I've tried setting it to run as Admin, but the check-box is greyed out....
So, I have this for batch renaming files in a folder:
Dir | rename-item -newname { $_.name -replace "oldname","newname" }
And it works like a charm. The thing I can not figure out how to do is add characters - w/o changing any. So let's say I have 3 files: 1.txt 2.txt and 3.txt - I want to change them to be x1.txt x2.txt and x3.txt
So I try replacing 'replace' with 'add' like this:
Dir | rename-item -newname { $_.name -add "x", }
But it doesn't work. Is this possible, and if so, what I am missing in my command line?
How to execute a MS-DOS Batch File in Windows 7?
View 2 Replies View RelatedHow to execute a MS-DOS Batch File in Windows 7?
View 16 Replies View RelatedI'm looking for a way to crash a Windows 7 computer, using a batch file. I know a decent amount about DOS/Batch files, but I don't know exactly how to crash a windows 7 computer using a batch file, because there was only one way I really wanted to do it, but with Windows 7 security fail safe, I can't take control and delete my "c:windowssystem32" folder. You're probably asking me why I would like to do this, and the reason is because it's a school project. My instructor would like us to crash one of this lab computers using a batch file, which all I can do is Right-click>Run As Administrator.
But I'm not here for that, all I'm curious about is some different, unique, cool ways to crash a Windows 7 computer. Batch file will be copied to the desktop and run as administrator.(No files other than the batch file may be copied to desktop) Additional files can be utilized either as a result of creation through the batch file, as a result of downloading from the Internet or files native to the lab workstations. Additional files are only to be utilized through the batch file Speakers are available on-demand Damage must be contained within the local machine.
I am working on a batch file that will copy down required updates to some software in "Program Files." (Using the XCOPY command).This works fine as long as it is on XP and the user is at least a Power User (ability to modify "Program Files" ). I understand about the Power User requirement, so about XP is not the problem.With Windows 7, however, when we try running the batch file, it gives us an "Access Denied" error. Even if the user is a domain admin it gives the same message. The only way to get around this is to right click on it and make it "Run as Administrator".Any ideas on how to make it run for a Power User? I don't believe that it would allow a Power User to run it under Run as Administrator, so am wondering if there is a way to make it do something like "Run as Power User."
View 18 Replies View Relatedi just installed a new premium theme called hud apocalypse. i love the theme except it kinda erased my shutdown/restart/logoff/switchuser default from the start menu.I was able to write a batch file to shutdown. this is the code in the batch file c:windowssystem32shutdown -s -f -t 000..i've done a lot of google searches and alot of them say to restart via batch file and the command is Shutdown -r but this just shutsdown the computer and doesn't reboot.
View 3 Replies View Relatedwindows batch scripting and am in the process of trying to create a game for a blind child.
@echo off
echo please enter name
set /p name-field=
echo please enter address
set /p address-field=
echo please enter city
[code]....