Search found 139 matches
- 13 Nov 2015 20:05
- Forum: DOS Batch Forum
- Topic: user input in #.### format
- Replies: 3
- Views: 3152
user input in #.### format
I have a batch file that collects user inputas seen below Set /p whole-number= Set /p decimal= However when the user enters the decimal for example 0.5 the rest of the script won't work because the decimal must look like this 0.500is there a way to force the batch file to add the extra zero's so the...
- 13 Nov 2015 14:01
- Forum: DOS Batch Forum
- Topic: Sdel - speedy deletion utility
- Replies: 64
- Views: 43125
Re: Sdel secure speedy deletion utility
sorry penpen its not working
Code: Select all
H:\sdel>sdel H:\sdel\1 -d
Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at JScript 0.Global Code()
at JScript Main.Main(String[] )
H:\sdel>
- 12 Nov 2015 15:56
- Forum: DOS Batch Forum
- Topic: Sdel - speedy deletion utility
- Replies: 64
- Views: 43125
Re: Sdel secure speedy deletion utility
Thank you pen pen so much I am sorry for any mistakes I made but I am not very good with other programming languages
I will tell you if it works but my pc isnt working right now thanks again.
I will tell you if it works but my pc isnt working right now thanks again.
- 11 Nov 2015 11:06
- Forum: DOS Batch Forum
- Topic: Sdel - speedy deletion utility
- Replies: 64
- Views: 43125
Re: Sdel secure speedy deletion utility
I tried to make a code that can run as a hybrid from cmd but it doesn't work its modeled off this self compiled hybrid as seen here viewtopic.php?p=35221#p35221 does anyone know how to fix this ? thanks @if (@X)==(@Y) @end /* JScript comment @echo off setlocal for /f "tokens=* delims=" %%v...
- 08 Nov 2015 13:41
- Forum: DOS Batch Forum
- Topic: Sdel - speedy deletion utility
- Replies: 64
- Views: 43125
Re: type nul and ren *.*
Thank you trebor I have one more question is it possible to turn this into a self compiled hybrid as seen here viewtopic.php?p=35221#p35221
So it can be run from the command line with a syntax like this
So it can be run from the command line with a syntax like this
Code: Select all
Sedel /d or /f %filePath%\file.ext
- 07 Nov 2015 14:55
- Forum: DOS Batch Forum
- Topic: Sdel - speedy deletion utility
- Replies: 64
- Views: 43125
Re: type nul and ren *.*
Thank you trebor but the section for deleting an entire folder doesn't work on my computer any ideas how to fix this and yes I removed the echo's.
- 06 Nov 2015 14:26
- Forum: DOS Batch Forum
- Topic: Sdel - speedy deletion utility
- Replies: 64
- Views: 43125
Sdel - speedy deletion utility
Moderator comment: This code deletes files but not securely, as the file will still exist untouched on the drive and can be unerased with any tool for the purpose. m sdel.bat Most recent version @echo off title SDEL - speedy deltetion :again cls echo SDEL - Speedy delete program echo. echo F - Dele...
- 29 Oct 2015 14:12
- Forum: DOS Batch Forum
- Topic: Record time taken for batch to process a file
- Replies: 1
- Views: 2135
Record time taken for batch to process a file
I have a batch file similar to this
How can I see how long it takes the file to reach an if statement and pipe the time taken into a text file ? Thanks.
Code: Select all
@echo off
Cls
Set /p word
If %word%== this echo that
:: with about 500 more if statements
How can I see how long it takes the file to reach an if statement and pipe the time taken into a text file ? Thanks.
- 24 Oct 2015 09:18
- Forum: DOS Batch Forum
- Topic: send clip board content to text file
- Replies: 8
- Views: 6123
Re: send clip board content to text file
No I had copied my question the the clip board and it sent the clip help to the text file instead.
- 24 Oct 2015 09:10
- Forum: DOS Batch Forum
- Topic: send clip board content to text file
- Replies: 8
- Views: 6123
Re: send clip board content to text file
I would like to run it from a batch file but I tried running it through cmd and it didn't work it sent the text type clip /? For usage into the text file.
- 24 Oct 2015 08:54
- Forum: DOS Batch Forum
- Topic: send clip board content to text file
- Replies: 8
- Views: 6123
Re: send clip board content to text file
Npocmaka I am sorry but it's not working on my computer note I am running windows Vista don't know if that helps ?
- 24 Oct 2015 08:34
- Forum: DOS Batch Forum
- Topic: send clip board content to text file
- Replies: 8
- Views: 6123
send clip board content to text file
Is it possible to send text from the clip board to a text file from a batch file I tried
Clip> C:\Users\user\1.text
But it didn't work is is it possible to do this?
Clip> C:\Users\user\1.text
But it didn't work is is it possible to do this?
- 22 Oct 2015 14:15
- Forum: DOS Batch Forum
- Topic: set a command as an environmental variable
- Replies: 2
- Views: 3324
set a command as an environmental variable
Hello I would like to know if it is possible to set a cmd command as an environmental variable. For example if a batch script contains many if statements would it be possible to set the if statement as a variable and run it @echo off Cls :top Set /p word Set "if word=="=var :: then you can...
- 20 Oct 2015 14:06
- Forum: DOS Batch Forum
- Topic: allow a space in user input without quotes
- Replies: 7
- Views: 4921
Re: allow a space in user input without quotes
OK I have a batch file named file.bat
Is there a way to allow the user to enter to jump without adding quotes ?
Code: Select all
@echo off
Cls
Set /p action
If %action%== jump echo jump
If %action%== to jump echo jumping
Is there a way to allow the user to enter to jump without adding quotes ?
- 19 Oct 2015 16:51
- Forum: DOS Batch Forum
- Topic: allow a space in user input without quotes
- Replies: 7
- Views: 4921
allow a space in user input without quotes
Hi I have a batch file that contains a list of possible words the user can type in and the file will "echo" a different word but the user must type in one or two words and the first word will always be "to"if there are two words for example to run or the use could input a single ...