Search found 1158 matches
- 06 Feb 2015 09:55
- Forum: DOS Batch Forum
- Topic: Extreme programming - Coding binary through ECHO
- Replies: 13
- Views: 13410
Re: Extreme programming - Coding binary through ECHO
Hi I think you have forgotten to type these ALT numbers using the number pad. It won't work if you just type ALT and an asciicode. Do these steps! 1) Switch on Num Lock first 2) Hold Left ALT 3) Whilst holding Left Alt down type the Ascii code number on the KEYPAD e.g. 80 (P) 4) Let go of the Left ...
- 28 Jan 2015 15:19
- Forum: DOS Batch Forum
- Topic: Bat file shuts down to quickly without a pause
- Replies: 9
- Views: 5997
Re: Bat file shuts down to quickly without a pause
You're completely right @squashman I should've known better than to ask a question without including code. In the future I will refrain from doing so as they do invite sarcastic responses. And honestly I really appreciate this forum and I don't like seeing snarky comments as they are not helpful to...
- 27 Jan 2015 08:55
- Forum: DOS Batch Forum
- Topic: How to best delete directories
- Replies: 6
- Views: 5073
Re: How to best delete directories
rd by itself just removes directories the /s flag deletes all files and subfolders as well From rd /? RMDIR [/S] [/Q] [drive:]path RD [/S] [/Q] [drive:]path /S Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree. /Q Quiet ...
- 26 Jan 2015 08:01
- Forum: DOS Batch Forum
- Topic: How to best delete directories
- Replies: 6
- Views: 5073
Re: How to best delete directories
del can't delete folders
Try using rd /s @path instead.
Try using rd /s @path instead.
- 23 Jan 2015 09:00
- Forum: DOS Batch Forum
- Topic: Call .bat from another machine
- Replies: 8
- Views: 4329
Re: Call .bat from another machine
Is P: a mapped network drive? I seem to recall something about needing to re-map the drive at the start of the script.
- 23 Jan 2015 07:42
- Forum: DOS Batch Forum
- Topic: Rename xml file based on the content inside using window bat
- Replies: 5
- Views: 4864
Re: Rename xml file based on the content inside using window
CSV.bat will surely help with this.
- 22 Jan 2015 19:51
- Forum: DOS Batch Forum
- Topic: DOS equivalent of linux command pass
- Replies: 9
- Views: 5566
Re: DOS equivalent of linux command pass
I left out the "delims=" because they wanted a space-delimited string, but yeah, good call on the /a:-d
- 22 Jan 2015 18:14
- Forum: DOS Batch Forum
- Topic: Problems printing with DOS program using "net use lpt1"
- Replies: 8
- Views: 6895
Re: Problems printing with DOS program using "net use lpt1"
Well, first I would try out the command to see if it even works. Just put the code in a command prompt. And then if it does fix the problem, I would reboot and see if the problem comes back. ⋅ If the problem is initially fixed but comes back after the reboot, you need to add the line to th...
- 22 Jan 2015 17:39
- Forum: DOS Batch Forum
- Topic: DOS equivalent of linux command pass
- Replies: 9
- Views: 5566
Re: DOS equivalent of linux command pass
Isn't $(ls *.txt) a value containing the output of the command ls *.txt?
You could say something like
You could say something like
Code: Select all
for /F %%A in (dir /b *.txt) do (
call yourFunction %%A
)
- 22 Jan 2015 03:28
- Forum: DOS Batch Forum
- Topic: Problems printing with DOS program using "net use lpt1"
- Replies: 8
- Views: 6895
Re: Problems printing with DOS program using "net use lpt1"
And as for what everything else does... :: Prevent the commands from being displayed on the command prompt as they are being run @echo off :: Go to the D:\BOOKS directory. This could also have been achieved with the command cd /d D:\BOOKS D: CD \BOOKS :: Run FOXR.exe with the options BL and -T. I ha...
- 22 Jan 2015 03:18
- Forum: DOS Batch Forum
- Topic: Problems printing with DOS program using "net use lpt1"
- Replies: 8
- Views: 6895
Re: Problems printing with DOS program using "net use lpt1"
Try deleting the port with before running the script.
Code: Select all
net use LPT1: /Delete
- 20 Jan 2015 12:16
- Forum: DOS Batch Forum
- Topic: Output numeric values with 2 digits after fraction?
- Replies: 20
- Views: 13426
Re: Output numeric values with 2 digits after fraction?
You can do that?!
Man, I really need to learn Powershell...
Man, I really need to learn Powershell...
- 20 Jan 2015 10:16
- Forum: DOS Batch Forum
- Topic: Calling gawk from DOS batch script?
- Replies: 2
- Views: 3307
Re: Calling gawk from DOS batch script?
Also, in Windows, you need double quotes around your gawk command.
Try
Try
Code: Select all
gawk "BEGIN{printf\""%%s\n\"",4/7}"
- 20 Jan 2015 10:12
- Forum: DOS Batch Forum
- Topic: Calling gawk from DOS batch script?
- Replies: 2
- Views: 3307
Re: Calling gawk from DOS batch script?
Either have a line in your batch like
or
Code: Select all
set path=%path%;"C:\path\to\gawk.exe"
or
Code: Select all
start "" /b gawk 'BEGIN{printf"%%s\n",4/7}'
- 20 Jan 2015 10:05
- Forum: DOS Batch Forum
- Topic: Output numeric values with 2 digits after fraction?
- Replies: 20
- Views: 13426
Re: Output numeric values with 2 digits after fraction?
Oh, european decimals. I don't have a way of testing that, but it should be similar. You may have to convert the commas to periods first.