I think kattman is correct. In Linux/UNIX shell, the command to empty out a directory is
cd "/path/to/directory"
rm -rf *
If you are looking for bash-like commands on windows,...
Type: Posts; User: ranjankumar09
I think kattman is correct. In Linux/UNIX shell, the command to empty out a directory is
cd "/path/to/directory"
rm -rf *
If you are looking for bash-like commands on windows,...
I recommend looking at the state of the files you suspect are missing. Download a scripting tool like biterscripting and list the files with this command.
cd "/path/to/folder" ; lf
This...
For comparing two columns (let's say A and B), enter this forumla in row 1, column C.
=IF(A1>B2, A1, B1)
1. Any value beginning with = is considered a formula.
2. The syntax =IF(x, y, z)...
@ Yellowblock
I am not sure if I fully understand, but sounds to me that you want to delete a file "deleteit.txt" that is a week old. There are multiple files called "deleteit.txt" on the...
I assume you want to start in /Movies folder, list the name of each subfolder, and list the size of the .mkv file within that subfolder.
This script will work.
# Script ListMovies.txt
var...
This is not vbscript, but may be helpful. This script is in biterscripting. It will create a tab-separated Excel file from all *.txt files under a given directory. The excel file will be created in...
I will be quite surprised if this can be done using firefox, without proper login and password. I am not saying it can't be done, just saying that I can't imagine how it can be done, and I will be...
I recently wrote a script that automatically downloads data from a website that requires login/password, without actually logging in manually. I wanted to share it with those who may be needing...
Here is a script to download youtube.com videos.
Save this script in file C:/Scripts/Hex2Ascii.txt.
# Script Hex2Ascii.txt
var str value, replacelist
set $replacelist = "...
This is not PHP script, but you may find this script useful. Just take the algorithm and put it into PHP.
Biterscripting script SS_FindStr.txt. It's called as
script "SS_FindStr.txt"...
awk and sed both originated in UNIX.
At the highest level of description,
awk is a tokenizer.
sed is an automated editor (stream editor).
Examples:
# Script MoveExe.txt
var str source, destination, list, file
lf -r -n -g "*.exe" $source > $list
while ($list <> "")
do
lex "1" $list > $file
system move ("\""+$file+"\"")...
Although old post, this is in case someone in future has the same problem.
You may want to consider a biterscripting script for file manipulation like this. I wrote a quick script.
# Script...
Yes, there is a way to execute this script with a double-click.
Create an icon on the desktop, and assign it this command.
"C:/biterscripting/biterscripting.ex" "C:/Scripts/DeleteFiles.txt"...
This is an alternate way to approach it. You may like it for its simplicity. This script takes 3 arguments.
# Script m2n.txt
var str file, m, n, content
cat $file > $content
#Remove...
This script will delete all files that are not modified in n days within the directory structure d.
# Script DeleteFiles.txt
var str d, n, list, file
lf -r -n "*" $d (($ftype=="f") AND ($fmtime...
Do you want to preserve "empty" lines or delete them ?
Here is an alternate biterscripting script with line-by-line control.
# Script LeadingWhiteSpaces.txt
var str file, content, line,...
I am suggesting one more approach. You will need lame for audacity (or another converter tool that has command line interface). This biterscripting script will convert all .wav to .mp3 in the...
For deleting files, a manual interactive approach is always recommeneded. However, if you must do this automatically, the following script will delete files based on specified criteria - top folder,...
Nice print server script.
I had seen this question somewhere earlier but can't find the thread. Here is the question reworded.
Here is the script to do that in biterscripting.
# Script Substitute.txt
var str...
Here is a more general approach. Put a list of hosts (or their ip addresses) in file C:/Hosts.txt.
# Script HostsScript.txt
var str hostlist, host, path
# Read the list of hosts.
cat...
Thank you for posting your final approach.
If you want to automate this, you can use the stream editors available in biterscripting. For example, to replace all non-printable characters with...