1,891 Topics

Member Avatar for
Member Avatar for etm9413

Hi all, this is a quite simple question. In windows, I wan't to set an environment variable to contain a cmd prompt command that will open an explorer window from the command prompt current directory. I am aware of the >explorer <path> command and want to make use of the …

Member Avatar for Aia
0
186
Member Avatar for digitalhead

Hi, I wanted to write a C program which searches for text files in a directory(assuming the directory and files are not write protected),list them and open each one of them(files) write a letter A in them.Can anyone give me a sample code. I believe it can be done with …

Member Avatar for ashok.bandari88
0
219
Member Avatar for mkbuster

I need to sum up the values of 3rd column and 4th coulmn based on the following conditions 1) If the 1st column (i.e ctpy) of the record matches with any other record && first two character of the 2nd column (ety), matches with first two character matches the 2nd …

Member Avatar for mkbuster
0
464
Member Avatar for boshu

Hi There I am building some SW modules in Linux environment and at the end of a build the artifacts are stored in the env in a particular folder called HW. This HW folder contains a number of folders underneath for individual targets and those contains one or more folders …

Member Avatar for boshu
0
128
Member Avatar for kristo5747

Why does this work [CODE] for myfile in `find . -name "R*VER" -mtime +1` do SHELLVAR=`grep ^err $myfile || echo "No error"` ECHO $SHELLVAR done[/CODE] and outputs [CODE] No error err ->BIST Login Fail 3922 err No error err ->IR Remote Key 1 3310 err [/CODE] But this does not …

Member Avatar for Fest3er
0
235
Member Avatar for Pityu

Hey there everyone! I have an issue with a script with which I had sweated much, and I can't suspend it even if I find another solution for what I want. What I want would be the following: A script that creates a full backup of a directory and all …

Member Avatar for Fest3er
0
223
Member Avatar for quibbie

I am looking at building a website that will allow people to sign up and post stats every week about others. For example, Joe has a show dog and likes to compete so Joe comes to to the site and posts. Dog Name: Breed: Weight: Skills: Week 1: Fastest lap …

Member Avatar for MagicMedia
0
163
Member Avatar for neely615

First, I apologize for posting this since it seems to have been addressed for every situation except mine (or so I can find), and I admit I am a complete novice. [B]Intro:[/B] I have a batch file which gets placed in a directory with target files, loops through the files …

Member Avatar for griswolf
0
331
Member Avatar for scriptingnoob

Hi all, As the name suggests, sriptingnoob by name scriptingnoob by nature! I really need some advice, as I am loosing what little hair I have left. I have a file which contains lines similar to these MACHINE[1]=192.168.10.1 HOSTNAME[1]=MACHINE1 LOCATION[1]=UPSTAIRS MACHINE[2]=192.168.20.2 HOSTNAME[2]=SAGE LOCATION[2]=UPSTAIRS PRINTER[3]=192.168.10.56 etc I want to write a …

Member Avatar for L7Sqr
0
109
Member Avatar for y2kshane

how to get target path of a shortcut what i want to do - user drag and drop shortcut to the form(i know how to handle drag and drop) . shortcut path have to store in a string plz help me when i google i found codes to do this …

0
123
Member Avatar for MarkGia

I have question about shell command well lets say i have this [CODE] Shell("\bin\game.exe", AppWinStyle.NormalNoFocus) [/CODE] Well as you know the command will come up an say File Not Found [CODE] FileNotFoundException [/CODE] So how can i put this command and when the file is not found turn up with …

Member Avatar for MarkGia
0
450
Member Avatar for juan77

Hello everyone I have the following code. bat and I would like to convert it. sh, someone could help me? Thank you. [CODE]1) for /F "eol=#" %%i in (%wade-cfg%/boot.properties) do ( set %%i ) 2) for %%F in (%lib%/*.jar) do ( set class-path=!class-path!%lib%/%%~nxF; ) 3) for /f "tokens=*" %%G in …

Member Avatar for griswolf
0
116
Member Avatar for tmparisi

This will be on an automated FTP scheduler... Here is the 1 step I am trying to accomplish: 1. Upon connection to server, the script should: delete all files within the folder '/backup'. That's it... any ideas?

Member Avatar for JeoSaurus
0
31
Member Avatar for braintwister17

Hi Everyone , I am currently learning shell scripting.So I just need little help from you. If you know sites which have good shell programs / questions for practice (solving ) .. please post them here. If you can provide any alternative regarding my study on shell scripting that would …

Member Avatar for IIM
0
139
Member Avatar for stroganoff23

Hi , how can I use the at command to find me in a specific point of time upon logging in? which it will display on screen a txt file at the same time. Thanks in advance

Member Avatar for IIM
0
97
Member Avatar for emanfman

Well, well. I was looking for a program online. And so, it appeared as a [ICODE].bat[/ICODE] file. However, It looked suspiciously small at 53 kB. So, before I ran it, I opened it up in notepad and voila, a virus. So, I shredded the file with the windows 7 shredder, …

Member Avatar for sknake
0
143
Member Avatar for Code12345

NOTE TO MODS: I wasn't sure in which category my question would fit in so if i have posted in a wrong section plz move it in the right section.Thanks Ok guyz here is the problem. I have a router which is accessed from the browser. I also have to …

Member Avatar for jingda
0
257
Member Avatar for SakuraPink

Hi everyone, I have a text file which looks like this: [CODE] ( 3,3,0 ) 0.9984104 0.000503 ( 3,3,1 ) 1.000613 0.000484 ( 3,3,2 ) 1.001192 0.000571 ( 3,3,3 ) 1.002418 0.00063 ( 3,3,4 ) 1.003345 0.000583 ( 3,3,5 ) 1.000215 0.000512 ( 3,3,6 ) 1.000911 0.000537 ( 3,3,7 ) …

Member Avatar for Aia
0
294
Member Avatar for SakuraPink

Hi there, Here is the problem: I have a Text file with several hundreds of lines and I want to store line 100 to 200 in another text file. I wrote the following piece of code but result is all of the lines not just the ones that I need. …

Member Avatar for SakuraPink
0
245
Member Avatar for _neo_

Hi all. I need to highlight comments on mcedit. 1) comments start with "--" 2) comments may may end with "\n" or with "--" how to do it in mcedit syntax file? These lines are my syntax file content which responsible to highlight comments context -- \n brown # here …

Member Avatar for _neo_
0
257
Member Avatar for manish250

hello all i have a jap project.in which i have a lot of log(txt) files.what i want to do is searching a particular number in all log files and cut some fields of lines containing that number and show them as table in jsp page. currently i am using shell …

Member Avatar for kingman123
0
85
Member Avatar for sjgriffiths

Hello I want to sort a file and then uniq it, but ignoring the first field so i have REF | FOR | SUR TLT090991|STEPHEN|GRIFFITHS TLT090992|STEPHEN|GRIFFITHS So i want to uniq but ignore the REF field I had this but it doesnt work cat $FILE | sort -t '|' -k2,3 …

Member Avatar for JeoSaurus
0
277
Member Avatar for _neo_

Is there a way to get current date and time from remote windows machine on linux? On remote windows machine ssh not enabled, there are no powershell. Can we achieve result via telnet or smbclient?

Member Avatar for _neo_
0
1K
Member Avatar for vasuv

Hi All, We are using one application. This application is having 2types of jobs. Under each job again there are each 5 sub jobs. All the jobs are scheduled jobs. Now the requirement is The main 2 jobs we are going to run on some specified days( for this we …

Member Avatar for IIM
0
154
Member Avatar for divineelite

I am using ShellExecute(NULL,"open","control.exe","ncpa.cpl","c:\\windows\\system32\\",SW_NORMAL); to open the Network Connections window. That is working on my system which has Windows XP on it. But when I make a build for the machine on which this program has to run it doesn't work. It has Windows Embedded on it. I guess it's …

Member Avatar for gerbil
0
196
Member Avatar for Shruti4444

Trying to code a shell script for a program testing. i need to check for the existence of particular word in outfile and then proceed further, which i am not able to do. I have wrote the following code. Please tell the corrections.. The control does not pass to the …

Member Avatar for IIM
1
131
Member Avatar for happy8899

[CODE] set a = 3 set type = a echo $($type) [/CODE] How for me to get value of 3 from variable $type which is a. I can't get value 3 from what i do above? please help thanks!

Member Avatar for IIM
0
159
Member Avatar for Beat_Slayer

Well, it bothers me to build menus for every shell application that needs one. So, I've written a module to handle that, like in the good old turbo pascal times. :) Here it is, the module comments are pretty explainatory, I think, and the sample usage if run as script …

Member Avatar for Beat_Slayer
0
3K
Member Avatar for anjoz

I need to make a recycle bin code using bash my problem is that i dont know how to get the previous path of the files that ive deleted so when i restore it it will go to the directory that it was deleted from ive tried putting the paths …

Member Avatar for JeoSaurus
0
361
Member Avatar for landog

How do I test whether the first character in an array is a particular character? [CODE] i=0 while [ $i -lt $# ]; do strng=${args[i]}; if [ $strng[0] == '-' ] echo ${array[i]} let i=i+1 done [/CODE] Better yet - can I test the first character in an array of …

Member Avatar for landog
0
97

The End.