I want to parse a log file (log.txt) which contains rows similar to these:
2010-10-19 07:56:14 URL:http://www.website.com/page.php?ID=26 [13676] -> "www.website.com/page.php?ID=26" [1]
2010-10-19 07:56:14 URL:http://www.website.com/page.php?ID=44 [14152] -> "www.website.com/page.php?ID=44" [1]
2010-10-19 07:56:14 URL:http://www.website....
Hi Guys,
I was confused as to what is the difference between a Script and a Program, but a previously asked question http://stackoverflow.com/questions/2286552/difference-between-script-and-program clarified my doubt but that further leads me to wonder what is the difference between an Object being Scriptable versus being Programmable.
...
I am trying to get the path of a file that is within a sub-directory of the current directory in VBScript. The following does not seem to work?
currentDirectory = left(WScript.ScriptFullName,(Len(WScript.ScriptFullName))-(len(WScript.ScriptName)))
FileToCopy = currentDirectory & "\test\user.js"
Here is the entire code:
Set oFSO = Cre...
Hi i wrote simple script as .bat file, and if i run this using windows scheduler , it kill the application and restart , but after that application runs in background as a proces, what shoud i do to see it in my screen?
taskkill /F /IM program7.exe
start D:\AIMR\CS\program.exe
...
Lets say I have a variable which has values :
#!/bin/sh
MYVARIABLE="first,second,third"
for vars in MYVARIABLE
do
echo $vars
done
this above doesn't work what I want but it looks fine, this should print first second third without , I wan't it to be printed without , any sugestions?
...
Hi
I often have to transfer 4000 small files to a remote server (around 20 MB of data), which I currently only have FTP access to.
This operation takes 30 minutes but if I were to send one file sized 20 MB it would take 2 seconds or so.
I am looking for an alternative which is faster, and which for example zips the 4000 files into one f...
I'm trying to build a file path in powershell and the string concatenation seems to be a little funky.
I have a list of folders:
c:\code\MyProj1
c:\code\MyProj2
I want to get the path to a dll here:
c:\code\MyProj1\bin\debug\MyProj1.dll
c:\code\MyProj2\bin\debug\MyProj2.dll
Here's what I'm trying to do:
$buildconfig = "Debug"
G...
Ok, first up, this is NOT for a class, test, or other student type activity.
I'm a scripter for a game, and am trying to implement the math library for all to use, and unfortunately, all I have available to me is very basic lua. The implemented version cannot be changed, and does not include any libraries. For those wondering, its for ...
now we are working in one project.in that project we choosed HTML5 and CSS3 designed. but still we have confuse on server side scripting, whether php,ruby,python,scala,and more and more..our requirements is nothing but
SERVER SCRIPTING LANGUAGE:our server side scripting language is secure and more helpfull(ease of development,security...
Despite knowing a good bit of C++......i actually don't know that much about scripting languages. I feel like however I need to learn more about them.
However there are a fair bit of different ones, but which one would be the best one to learn for a job? (I am a CS graduate in December btw) or just a general "better" to work with.
Power...
Hi all
I run bash scripts from time to time on my servers, I am trying to write a script that monitors log folders and compress log files if folder exceeds defined capacity. I know there are better ways of doing what I am currently trying to do, your suggestions are more than welcome. The script below is throwing an error "unexpected en...
I'm looking for something similiar to indent but for (bash) scripts. Console only, no colorizing, etc.
Do you know of one ?
...
Hi Guys,
I have a table with data exactly like this:
ID Heading Description Time Location Start_Date End_Date
63 Wed Serv Small group 19:00:00 null 2010-10-13 null
70 Fall Harvest Calvary null Pepin, Wi 2010-10-30 null
My Calendar shows the events on the correct dates, but the ti...
Hi, alL!
Since VBScript has notoriously bad built-in error handling, I've tried getting around that by wrapping my main blocks in a Do While Err.Number = 0 loop. Theoretically, this should work: if a script has On Error Resume Next statement enabled, the script will bypass the built-in error handler in WSH (i.e. stop it completely) whil...
I use scripting for this:
"%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\TF.exe" get $/DmlOnDemmand /recursive /force /noprompt
And I build solution .sln
call %msBuildDir%\msbuild %solutionName% /t:Rebuild /p:Configuration=%buildType%
Now, I would like execute all Unit Tests and check all is OK.
How can I execute unit t...
what do people use for scripting in .net apps. New question after MS drops IronPython
IP used to be my favorite; then Lua
What do I mean by scripting. I mean I have a large system management tool that allows users to plugin bits of smartness, this include assemblies and scripts. What language should I use for the scripts. So I need an ...
1>
I have folder inside folders structure.
2>
I want to recursively create shortcut to every file.
the shortcuts must be place inside the same named folders, that it is at its source.
3>
Summary: same folder structure...just shortcuts in place of files
Any ideas will be appreciated.
...
I have to run a batch job which sits in the windows server from my unix box.
Or from my local machine.
The win server has a userName/Pwd .
How do i programmatically connect to the windows machine and run the batch?
(The batch will change some file permissions in that machine)
Please let me know if there is a better way of handling this ...
I have a SQL Server 2008 database (call it productionDB) that contains data and will be used in a production environment.
I have another SQL Server 2008 database (call it stagingDB) that is used in a staging environment.
The application that I am working on continues to evolve such that I am often making changes to the database schema ...
the following is a script which was generated using generate script option.
the wizard says that this can be used to copy, create db on different servers
so its made for it, then why does this error occur.??
the error is
Msg 5170, Level 16, State 1, Line 2
Cannot create file 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SECOND\MS...