Hey guys
Just building a batch file to delete temp files on my vista machines @ home that i want to add to task scheduler. i have this so far, but i get alot of access denied, and it never finds a thumbs.db file or index.dat and there are heaps of them. what am i doing wrong?
attrib +a -s -h -r "%windir%\Temp\*.*" /s
del /f /s /q "%...
I am trying to create a batch script that would connect to a mySQL database and issue a delete command:
@echo off
echo Resetting all assessments...
mysql -hlocalhost -urdfdev -p%1 rdf_feedback
delete from competency_question_answer;
I will run this script providing the password as a command-line argument, but all this script does is, ...
Hi,
Is their anyway to test the correctness of a powershell script without executing it. I know you could do something similar in unix, but can't find the equiv for powershell.
Essentially what I have is a script repository, where each script is tied to rule. If a rule fires, the script executes, but I need to be sure the script is v...
OK, I'm trying to make an "empty" version of a database on another instance of SQL Server 2005. To do this, I use the Scripting wizard to make a big script that CREATEs all the tables, views, SPs, etc., adds some users, and grants permissions for them. Now, in the permission section of the script, I have (among other things)
use [mast...
Hi guys just wondering if u can help me modify this script that ive been playing around with, i cant get it to accept wildcard charcters '*'
@echo off
setLocal EnableDelayedExpansion
set /a value=0
set /a sum=0
FOR /R %1 %%I IN (*) DO (
set /a value=%%~zI/1024
set /a sum=!sum!+!value!
)
@echo Size is: !sum! k
Its in a batch file calle...
Hello!
I am new to firefox extension building and would like some help on an application I am creating. I would like to create a firefox extension that on choosing to activate the firefox extension, opens a new tab and sends the script to the page to display a certain amount of text or perform some sort of activity.
The only problem wit...
I'm writing a shell script and I want to escape a string. Is there any way to convert this:
I'm happy.
You're sad.
to
I\'m happy.\nYou\'re sad.
I'm pretty sure there's some combination of sed/awk that does this....
Thanks
...
Hi,
I want to create a script that will run whenever a server is turned on to do basic things like create a directory and copy a binary from an FTP server to it. I need it to run before a user logs in, as soon as the server is turned on. This will be deployed on my EC2 windows servers.
Checking around (http://www.bleepingcomputer.com/t...
Hi,
I've got a scipt executing in C# using the powershell async execution code on code project here:
http://www.codeproject.com/KB/threads/AsyncPowerShell.aspx?display=PrintAll&fid=407636&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2130851#xx2130851xx
I need to return the $lastexitcode and Jean-Paul...
Hi guys me again :) I have a problem with a batch file I wrote. It works fine on 32-bit, but apparently it doesn't work on 64-bit systems, and I don't know why because I do not have access to a 64-bit system.
This is the code that works on Vista 32-bit system
@echo off
Set Reg.Key=HKLM\SOFTWARE\Malwarebytes' Anti-Malware
Set Reg....
The business I work for is an on-line retailer, I'm currently working on a project that among other things involves calculating the customer prices for products. We will probably create a service that looks something like...
public interface IPriceService
{
decimal CalculateCustomerPrice(ISupplierPriceProvider product);
}
public inte...
I have an SSIS script component which takes in rows from input.
One of the rows on the input is a boolean which identifies if the row is of type A or B.
How do I get the script to load all of the input rows into the correct collection of rows.
Also any guides on how to use the row collections and then output them would be great too.
...
When to use environment variable or command line parameter?
I think there are two ways to pass parameters to another process
in a script ,environment variable and command line parameters.
Thus,in which condition we choose one instead of another?
...
I have:
A list of URLS
A list of file names
A desired location
I'd like to:
Download the item at each URL (they're all mp3s licensed under Creative Commons).
Set each one to the appropriate file name.
Store them in a specific location.
Send the script to a friend who can do the same. It should be a single file that is executable directl...
I have hundreds of scripts for testing a component. Each of these scripts contain a set of subscripts and individual records.
Subscripts can be used in multiple TC_Level scripts and even in other subscripts.
Every script has a unique name.
Example:
TC_1
|
(1) Subscript_a
| |
| (1) Record i
| |
| (2) Record ii
...
I need to write a Ruby method that takes a word, runs it through OS 10.5’s Dictionary.app’s thesaurus function, and returns alternative words.
If the Ruby method ends up calling the command-line, that’s fine; I just need to be able to do it programmatically from Ruby.
After looking through Ruby OSA, I realize that the Dictionary is acc...
When scripting a DB using SQL Server Management Studio (SSMS) it generates line like:
/****** Object: ForeignKey [FK_NoteLinkAssociation_Link] Script Date: 04/24/2009 10:04:46 ******/
Is there a way to stop it from generating that line or the date part of that line?
Reason: The DB is being scripted and stored in source control an...
I have a script that's provided with another software package - which I would not like to modify in any way. I need to execute this script, provide a password, and then interact with it from the terminal (using raw_input, etc.).
...
Is it possible to enumerate all (or just enabled) ActiveX elements (*.dll, *.ocx) with WMI script?
Motivation: ActiveXHelper
...
I'm integrating an IronPython scritping engine into my C# raytracer which, so far, has been a breeze even though I'm completely new to Python. There is one particular thing, though, that I need help with. I have a C# class which defines a constructor like this:
public CameraAnimation(Action<Camera, float> animation)
In C#, I would ins...