Description:
The NT variant of MS-DOS batch files
|
|
|
Missing FAQ
|
| |
I usually set my time keeping devices by Timo's FAQ. :)
Did I miss something?
|
|
push/pop echo state
|
| |
Hi.
I would like to push/pop echo state similar to what `setlocal` and `endlocal` does for environment variables. Is this reasonably easily possible?
-- VZ
|
|
ECHO file names containing '&'
|
| |
Hi
In a batch file I have a line like
FOR %%A in (%1) do echo %%~A
supposed to remove the possibly surrounding double quotes from the
first parameter.
When the file's name passed in as %1 is e.g. 'Butch & Spencer.txt"
I get: unkown command 'Spencer.txt'
OK I know '&' is kinda an operator for command concatenation... more »
|
|
Search for text in environment variable
|
| |
I have a backup program that runs from a Win 98 startup disk (not a DOS box under Windows).
I need to be able to detect if it is running on Computer1 or Computer2.
Obviously, I cant read or see the NTFS hard drives to determine C1 or C2, but there are two differences I can detect easily under DOS. A DOS mem... more »
|
|
How to update variables list
|
| |
Writing batch to monitor (via external utility) some network devices. Utility scan network and print list of MAC address of all actually connected devices. On initial round will enumerate them and put in the pseudo field like this:
set lmac;%dev_num%=%mac%;%fw_ver%; %hw_ver%
Than periodically run some other routine through this list and read some additional data for each... more »
|
|
Source code backup batch file!
|
| |
Before I get into it I'd like to thank all of you for help in figuring out the date mechanism used in this file. :)
I just finished a batch file that's like the source code compression batch file I posted here a while ago but goes one step further. Here it is:
BackupToFloppy.BAT:
------------------------------ ---... more »
|
|
Missing xcopy?
|
| |
I have a WinXP cmputer at home that I sometimes use for programming. Remember the program distribution batch file I posted previously? Well, i doesn't work on that computer. When theconsole reaches the line that starts with "xcopy," the system complains that the command is not valid. I assume that the file is one of move, renamed or deleted. I have the Home Edition but not the install CD. I need this file to make it easier to pack a program for carrying places. How can I replace the file without breaking any rules?... more »
|
|
Current date stamp in batch file?
|
| |
I want to create a batch file in WinNT to automatically back up a program folder to a progam back-up folder quickly and easily for the purpose of having a copy to which to revert after experimentation or significant code change. In order to do this, I need to both extract the system date and report it in YYYY-MM-DD format into an archive target name. How do I do these?... more »
|
|
Character encoding
|
| |
Have .csv file downloaded from internet and need to convert encoding into cp852.
ENCA says the file is UTF-8 but "iconv.exe -f utf-8 -t cp852 c:\work\platby\vypis.csv >c:\work\platby\vypis-conv.csv " give "iconv: c:\work\platby\vypis.csv: cannot convert"
win_iconv.exe -f utf-8 -t cp1250 c:\work\platby\vypis.csv... more »
|
|
privacy: batch-killing (editing) hidden content of URL(!) files in win2K
|
| |
Hello,
It's been a while -- actually: a few decades -- since I've been using batch files last time for more than just simple operations like moving or deleting files. Now I'm faced with a problem that appears to be a bit more difficult - at least for me. So I hope someone can help me out with a few good hints.... more »
|
|
|