Over 1 million tech questions and answers.

checking user input in unix script

Q: checking user input in unix script

Okay, got another.

Im trying to write a unix script where a user provides a filename and I ask the user if it is correct. If it is the script continues, if not it will reprompt the user to enter it again, or they can chose to quit the program completely.

Im having trouble getting this thing to loop, and work for that matter. Here is what I threw together.

#Get the directory path
echo "Enter the directory path: \c" ; read dir
#Append to the file
echo $dir > /affinium/Campaign/Ad_Hoc_Chris/Snapshots/tempfile.dat

foreach directory ($dir)
echo $dir
echo "Is this the directory path you entered? (y/n/q)"
set ans = $<
switch ($ans)
case n:
case q:
case y:

Preferred Solution: checking user input in unix script

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: checking user input in unix script

Read other 15 answers

i want to get user input like this

please tell which option to chose
1. mango 2. tango 3. rango

if user chooses mango

then it should execute a set of statements and again ask like this

what do you want to do
1.add 2.subtract 3.exit

when i choose exit it should goto my previous menu asking again (please tell which option to chose
1. mango 2. tango 3. rango )

i have did coding to an extent like this


echo -e -n "\n Specify the script to be run \n specify the names as listed in the below format \n 1. mango 2. tango 3. rango 4.exit"
read answer
echo "$answer"

# Processing the user input which was given
while true
case $answer in
mango) echo "###################################################################################"

echo "******************* $DT ***********************"
echo -e "\n Specify what you want to do from the below options \n 1.add \n 2.subtract \n 3.exit"
read input

if [ "add" = "$input" ]

elif [ "exit" = "$input" ]
elif [ "subtract" = "$input" ]


echo "!! must specify add or subtract"

tango) echo "tango"
rango) echo "rango"
exit) exit 0;
*) echo "please enter correct value" read ;;

As you can see first it will ask me to choose from 6 options
1. mango 2. tango 3. rango 4.exit

. If for example if i chose 1. mango
th... Read more

A:VERY URGENT Trouble in getting user input while using under CASE statement in UNIX

You need to create functions.

Read other 3 answers

scheduling defrag for those that don't want to leave machines on overnight.

I've been looking around the web, and trawling through CMD.exe for a good few hours now, and I still can't find it.

I'm trying to create a batch file that defrags a machines c: drive, and then shuts down the computer as soon as it's finished, having given a 2 minute warning. That was the easy bit.

@echo off

defrag c:


I'm now struggling to find out how to get a simple (Y/N) input from a user as the script starts asking whether the user wants to defrag and shutdown or not waiting 60 seconds for an answer before procedding to defrag and shutdown the computer if no answer is given.

The idea is to schedule it to run at 2am every day, probably from Task Scheduler. It's an experiment in learning as much as anything else though, but I am now completely stuck, bogged down in pages and pages of useless information while trying to find the piece I want.

If anybody knows how to do it, I'd appreciate your help.

A:Looking for user input (Y/N) in batch script, with a timeout.

This is the text for e.g. DEFSHUT.BAT:

ECHO Want to Defrag Drive and Shutdown?
ECHO Press "N" if you just want to Shutdown
ECHO Press "Y" to Defrag and Shutdown
ECHO Press "Escape" to Cancel



defrag c:


:ENDClick to expand...

(Note that `^[' represents the "Escape" character. To create it, press ^P (Control-P) in DOS Edit, then the "Escape" key. Other text editors allow one to create the "Escape" character by pressing ^V first.)
Also note the reversed questioning of the input-varaibles

To implement a WAIT command, see here: http://malektips.com/dos0017.html

Read other 3 answers

Hey guys, Im having a odd time trying to figure this one out.

It seems to be just neglecting my second for loop.

any ideas ?

let count=0

array=`awk -F/ '{print $1"$"}' associates`
for i in $array; do
itemID=`awk -F, '/$i/ {print $1}' sales`
quant=`awk -F, '/$i/ {print $2}' sales`
let total=0
for j in $itemID; do
awk -F: '/^$j/ {$total+=$3*$quant[$count]' products
echo $total
echo 'hello'
let count++
echo 'boo'


Edit: It seems the ItemID array is empty, and I think its the syntax on the search expression. I cant seem to get it to find the instance of $i that i want it to.

A:UNIX Script issues

You can usually debug shell scripts by putting a -x after /bin/sh on the first line to trace what is happening - if you are not already doing that.

You can instrument your script with echo statements.

Note: awk scripts are notoriously incompatible with shell scripts although there is a way to pass a parameter from a shell script into an awk command.

Before the first for loop, I would want to echo the array to see if you get what you assume, and upon executing your script, it got:
./script.sh: 3: Syntax error: "(" unexpected

-- Tom

Read other 1 answers

I'm using an excellent script from R. H. Reepe for accessing accounts, but need a security line, that fits the script. Any suggestions? Thx in advance
Her's the script

Arg_1 = Requested Account Name (coded string)
# Arg_2 = Calling Script Name ($0)
# Arg_3 = [Calling PID (for uniqueness)]

if [ "$1" = "" ]
echo "Error in $0 : No coded string provided"
echo "Oracle Connection Refused"
exit 1
if [ "$2" = "" ]
echo "Error in `s_prog` : No calling script_name provided for"
echo "Subroutine s_access_account - Oracle Connection Refused"
echo "Attempt to Crack Security made by $USER at `date`" >> $_audit_log
echo "From terminal $TERM (`tty`) using script `s_prog`" >> $_audit_log
exit 2
_script_type=`dirname $2`
_script_type=`basename $_script_type`
_script_name=`basename $2`
if [ "$_script_type" = "." ]
_script_type=`basename $_script_type`
account=`/usr/5bin/echo "$1\c" | $DECODE`
/usr/5bin/echo "export account" > $account_string"$_pid"
/usr/5bin/echo "account=$account\c" >> $account_string"$_pid"
. $account_string"$_pid"
_name=`ech... Read more

A:Unix script security

what do you mean by 'security line'? Do you wish to verify that only authorized users
may invoke(run) the script?

the Oracle login will succeed or fail normally so what's your concern?

btw, there are other means to access Oracle, so this usage is marginal anyway.

Read other 1 answers

Hello there.

Im sure I know the answer to this but I thought id double check with you genius' first.

I would like to execute a unix script that ftp's a file from an AIX server to a Windows NT server. Is this posssible?

I think its only possible if the WinNT box is a FTP server with a corresponding ftp name, i.e. ftp.servername.com.

Here is some code I tried but im getting an unable to connect to server error.

# !/bin/sh


ftp -n <server IP or host name> <<ii
user <username> <password>
lcd Z:/dira/dirb/.
put x.txt

A:Unix to WinNT FTP script

This works for me...


ftp -n -i <ftp.example.com> <<END_SCRIPT
quote USER <username>
quote PASS <password>
cd /ftpdir/somefiles/
put *

Read other 3 answers

Hi all,
i have a problem with the following code.

while [ 1 ]
cl_name=`grep $client_code clientlist.file|awk '{print $2}'|sort -u ` #get the client name
echo 'Please select Q to quit \n'
read client_code
if [ $client_code = "Q" -o $client_code = "q" ]

The above code is part of a big program.The problem that i get when running this script is that on the second time in loop the grep show an error of file
grep: 0652-033 Cannot open clientlist.file.
the clientlist.file is a file i have created.

Thanks in advance

A:Unix script problem

Well beyond the obvious evilness of killing the while loop with a if inside of it. Which then renders the done completely and utterly pointless....

Something like this instead might work. Course with the little that we have to go on thats about the best I can offer.

client_code = 'sam'
while [ "client_code" != "q" ]
cl_name=`grep $client_code clientlist.file | awk '{print $2}' | sort -u`
echo "Please hit Q if you wish to quit now \n"
read client_code

Read other 3 answers

Hope this is the right forum...
We are calling our maintenance jobs on our Windows servers with Control-M. We now need to expand that to include our Unix boxes. Does anyone know of any utilities that can facilitate the calling of Unix scripts from a Windows (DOS) script? I was looking at Samba, but that seems to be for file sharing. Any ideas would be appreciated.
Thanks, Jim.

A:Calling Unix scripts from DOS script

Read other 15 answers

I am trying to create a script which removes a list of servers from a text file for a hosts file ???

I have tried all kinds of combinations with if statements but cant seem to find anything that works ???

all i want to do is remove a list of servers in one text from another text file.
Sounds easy but any help will be appreciated.

A:Solved: UNIX Shell Script HELP !!!

Read other 7 answers

Alright, I need the script to do the following.

1) From the home directory, type "df -k ." which will get the server space usage (%)
2) Email the output to someone.

Anyone know how I can do this in PERL?


A:Easy PERL script to use in UNIX!

Bumping this up... need help desperatly.


Read other 1 answers

write a Unix shellscripthat will take the information from two files and combine into another file
I created both files in vi and they are

David 734.854.5643
Roberto 313.432.4532
Sally 267.423.5412
Mary 435.432.7654
Ted 324.642.6743
Alice 234.576.3245
Frank 342.465.6754

and the second file is
Roberto Tuesday 2
Sally Monday 8
Ted Sunday 16
Alice Wednesday 23
David Thursday 10
Mary Saturday 14
Frank Friday 15

The output file should be like this:
Name----------------On-Call--------------------Phone-------Start Time
Sally---------------- Monday ---------------267.423.5412------8am

$file1 | sort > file1.sort
$file2 | sort > $file2.sort

echo -e "name\t days\t \phone numbers\t \Time\t"

for day in Monday Tuesday Wednesday Thursday Friday Saturday Sunday
name=`cat $file2.sort | grep $Oncall | cut -d, -f1`
if { $name }; then
phone = `cat file1.sort | grep $name | cut -d, -f2`
echo -e "$names\t \days\t \$phonenumbers \$Time
Did I do the for loop right??
What else do i need to add to the loop.
how to loop around again??
I know ... Read more

A:For loop problems Unix Shell Script Please help me

Why did you start another thread with the same topic?

Read other 2 answers

Don't know if this is the right forum for this question, but here goes........

I am just beginning to have to write shell scripts to run SQR processes in UNIX.

I have a script that is having problems copying a file. My code snippet is:

#copy output file out_file1
if [[ -s $out_file1 ]]
cp $out_file1 /cde/datasnd/CLIENT/$pg_name2.csv
chmod 666 /cde/datasnd/CLIENT/$pg_name2.csv
file_date=`date +'%Y%m%d.%H.%M.%S'`
cp $out_file1 $arc_file
# Payroll Automation project - copy outbound files to Payroll directories
$SH_LOC/pr_filecopy.sh O D $arc_file NORUNID
gzip $arc_file
chmod 666 $arc_file.gz
# comment out - mv $out_file1 $DATA_LOC/$pg_name2.csv
MSG="Process Notice - Output file $out_file1 does not exist"
SUBJ="Process Notice - $FILE_DB - Output file not found"
echo $MSG
# send_message $RECIPIENTS "$MSG" "$SUBJ"

The error messages I get are:
+ [[ -s /opt/PROD/CLIENT/DATA/group.recog_bw.csv ]]
+ cp /opt/PROD/CLIENT/DATA/group.recog_bw.csv /cde/datasnd/CLIENT/group.recog_bw.csv
cp: cannot create /cde/datasnd/CLIENT/group.recog_bw.csv: No such file or directory
+ chmod 666 /cde/datasnd/CLIENT/group.recog_bw.csv
chmod: WARNING: can't access /cde/datasnd/CLIENT/group.recog_bw.csv

I have checked the folder /cde/datasnd/CLIENT/ and it exists.
I have looked at the /opt/PROD/CLIENT/DATA/group.recog_... Read more

A:Unix shell script - novice question

Do you have read or execute permissions to all of the directories in the path in question?
You need r or x permissions for cde, datasnd and CLIENT to be able to create that file.

How do you upload the file manually? Your script may be running under different credentials.

Read other 4 answers


System Requirements

FrontPage Server Extensions version 2002 for UNIX is available for the patched Apache 1.3.19 Web server only.

Platform Operating System
Alpha Digital UNIX 4.0.f, 5.0
Intel x86 FreeBSD 3.3, 4.0
Intel x86 BSDI 3.3, 4.0
Intel x86 Linux 6.2, 7.0 (Red Hat Software)
Intel x86 Solaris 2.7, 2.8
PA-RISC HP/UX 10.2, 11.0
Silicon Graphics IRIX 6.3, 6.5
SPARC Solaris 2.7, 2.8

Operating System - Windows NT 4.0 & 2000, Win XP




Read other answers

at my PC beginning I was a Windows-User but with more experience, I was more and more interested on Linux (and the other Unix systems). The last years I was only using Linux as main System (it worked a lot better than XP, I will not speak of the xxxx Vista), and XP only for games.

Know since the leak 7022, that was the first version I tested more, I'm so impressed by Windows 7, that I do not use Linux anymore, I have it (for the moment) installed Linux a second system, and observe the community, but for the daily work, only WINDOWS7.

I was never thinking that I'm going to be so a big fan of a Windows system, but now I can't wait for the final version, and I'm happy for every Leak.

So UNIX for the moment you have lost me as USER.

So how many of you have switched too ??

A:how many USER's will the Unix-World loos??

Now lets see? I use the free Linux tool GParted after once having an 98SE/XP/Fedora Core 4 mess to clean up for the former XP/Vista dual boot.

Have ubuntu 9.04 and Knoppix 5.3 bootable on usb flash drives with them capable of being used as bootable data recovery tools over live cds. Nice to be able to carry a few of those on a belt clip over lugging a cd case around to bail someone out when their Windows system is down.

For internal drives those saw the loss of the XP/Vista dual boot in favor of two 64bit RC installations configured into the mix with the 32bit RC. How am I doing do far?

Read other 2 answers


I'm a student looking to implement an RFID system at my school, but need more than simple attendance software. Additionally, I am looking for a checking/alert system for sign in and sign out times, and would like to know if anyone can provide insight and/or potential paid assistance. The software would have to interface with both an iPad and a desktop computer.

My skype is parkbuddy10 - If you are interested in adding me to either message or voice chat, feel free, just make sure to include something about being from techguy when you add me.

Thanks so much in advance!

Read other answers

Anyone know of an application that will check an ASP scripts efficiency on how it runs queries against a SQL server? I know about perfmon to analyze disk I/O and CPU usage, but I am looking for something that will make suggestions on lines of code etc. Something for example that would tell you whether or not something would be better programmed as a stored procedure.

I know the code our developer wrote is pretty sloppy and I would like to try and clean it up a bit.

A:Checking script efficiency

Something like an HTMLTidy for ASP? What a great idea!

Here's what I found for you:

And this isn't a tool but just general good ASP coding:

(from: http://www.15seconds.com/issue/000106.htm)
ASP Page Performance
Reading from the object variable is always slower than reading from the local variable. So, if you are going to read from the object variable often, then store it in a local variable and access it. Slower:

if Myobj.Value = 0 then
Do something
elseif Myobj.Value &gt; 0 then
Do something
elseif Myobj.Value &lt; 0 then
Do something
end if

MyVar = Myobj.Value

if MyVar = 0 then
Do something
elseif MyVar &gt; 0 then
Do something
elseif MyVar &lt; 0 then
Do something
end if
If you are using VBScript 5.0 or later, then you can use the With ... End With statements.

Myobj.FirstName = "Srinivasa"
Myobj.LastName = "Sivakumar"
Myobj.City = "Chicago"

With Myobj
.FirstName = "Srinivasa"
.LastName = "Sivakumar"
.City = "Chicago"
End with
Before doing a bulky ASP code processing, you can check to make sure Response.IsClientConnected. If not, donít process the page. This will reduce the load on the server.
As always, avoid session variables because each ASP page runs in a different thread and session calls will be serialized one by one. So, this will slow down the application. Instead of sessi... Read more

Read other 1 answers

Hi all, As the name says I am not computer savy at all. I recently had the Trojan.MSIL.Kryptik virus. I used Kaspersky to try to get things working. It helped a lot but there are still problems. I keep getting a script error, unable to open registry key. I get this even when I am not online. For instance, I am trying to view photos on my computer. Some of them load but others don't. Then I get the script error. Any help appreciated.

A:Script error (Moved & still needs malware checking)

Read other 16 answers

In the windows 7 machines Text services and Input languages, we have below installed services in keyboard. We want to have only US and need to remove other 2 (canadian french and canadian multilingual). I tried with Group policy to remove other 2 services
and it didn't work. 
Can anyone provide script to change this in the registry to have only US keyboard in windows 7 machines?


Canadian French
Canadian Multilingual standard.

Read other answers


I need script or string by regedit to change input language for new user accounts to Portuguese (Portugal) - Portuguese.


A:need to change input language for new users via registry script

I don't know of any way to do it with a script etc. But you can set up the user accounts easily enough without that;

Keyboard Layout - Change

Region and Language Settings - Copy to New Users and Welcome Screen

Regards....Mike Connor

Read other 1 answers

Hey guys, since no one replied to my last thread because I don't think it was possible, so I'll make another one on a different perspective.

Instead of trying to make the drive letter the same, I would like the script to prompt the user for the drive letter and then input that into the script. I am having trouble coding this last piece of it, and if someone could please help me that'd be great

A:Batch script that takes drive letter input

set PASSWRD=knight
title Folder %LOCKFODLER%
if EXIST "Locked" goto UNLOCK
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
ren %LOCKFOLDER% "Locked"
takeown /f "U:\Locked"
icacls "U:\Locked" /deny everyone:F
echo Folder locked
goto End
echo Enter the Password to unlock folder
set/p "pass=>"
if NOT %pass%== %PASSWRD% goto FAIL
icacls "U:\Locked" /grant everyone:F
takeown /f "U:\Locked"
ren "Locked" %LOCKFOLDER%
echo Folder Unlocked successfully
goto End
echo Invalid password
goto end
echo %LOCKFOLDER% created successfully
goto End
Also, I've looked into an addon for cmd called EditVar which seems to be very helpful. If someone can show me the set/p code for such an idea stated in the OP, I'd be forever grateful

Read other 1 answers

Need aid in figuring out how to set the _Var(x) variables read in from the text file (which contains directory listings) file to either new variables or a way to incrementally reference (_var1, _var2, _var3...) in an IF or FOR statement later in the batch file. ISSUE - the second IF will not iterate properly the string saved from the input file in _var1, _var2, _var3....

SET cnt=1
SET cnt2=1
SET SYNCCmd="C:\Program Files\SyncLaptop\SYNC.CMD"
SetLocal EnableDelayedExpansion
::This line is just in case n has been defined before the batch file is run
::This FOR loop works flawlessly - reads in all file paths to _var variables
Set n=
Set _InputFile=c:\TEMP\SYNCLOG\SyncDirList.txt
For /F "tokens=*" %%I IN (%_InputFile%) DO (
Set /a n+=1
Set _var!n!=%%I
:: Line will display the variables just assigned - delete when not needed
Set _

:: LOOP through directory listing variables _var(x) until there are no more
IF %%_var!cnt!%=="" GOTO CLEANUP
ECHO first variable is: %_var!_cnt!%
SET _LocalDrv=_var%_cnt%
SET /a _cnt2=_cnt+1
SET _NetDrv=_var%_cnt2%

:: Check if real directory values where set to the variables - delete later
ECHO LocalDrv is: %_LocalDrv%
ECHO NetDrv is : %_NetDrv%
:: Open net CMD window, set color etc & call the XCOPY SNYC.CMD file to sync the two designated HD folders
START /W CMD /C "ECHO OFF & CLS & MODE CON: COLS=60 LINES=15 & COLOR 74 & %_SYNCCmd% "%_LocalDrv%&quo... Read more

A:Batch Script - Variable issue from parsing an input file

Welcome to TSG!

You initialize these

SET cnt=1
SET cnt2=1

Note there is no leading underscore.

This line uses the correct name, but should not have the doubled % symbol, just a single one:

IF [COLOR=Red]%%[/COLOR]_var!cnt!%=="" GOTO CLEANUP
Should be
IF %_var!cnt!%=="" GOTO CLEANUP
But these use a leading underscore:

ECHO first variable is: %_var![B][COLOR=Red]_[/COLOR][/B]cnt!%
SET _LocalDrv=_var%[B][COLOR=Red]_[/COLOR][/B]cnt%
SET /a [B][COLOR=Red]_[/COLOR][/B]cnt2=[B][COLOR=Red]_[/COLOR][/B]cnt+1
SET _NetDrv=_var%[B][COLOR=Red]_[/COLOR][/B]cnt2%
Change the variables so all are consistant, either using an underscore or not.

Also, you are setting the _LocalDrv and _NetDrv variables to _var+the number in _cntX. These lines should be:

SET _LocalDrv=[COLOR=Red][B]%[/B][/COLOR]_var[COLOR=Red][B]![/B][/COLOR]_cnt[COLOR=Red][B]![/B][/COLOR]%
SET _NetDrv=[COLOR=Red][B]%[/B][/COLOR]_var[COLOR=Red][B]![/B][/COLOR]_cnt2[COLOR=Red][B]![/B][/COLOR]%
Set _var= only clears one variable named _var. It won't clear _var1 or any others.
If you want to clear all of the _varX variables use this loop:

For /F "Tokens=1 Delims==" %%I In ('Set _var') Do Set %%I=
Use ('Set _') to clear all variables that start with an underscore.



Read other 1 answers

A friend showed me this web site, Thought i would just check it out . I thought it was really cool how you guys help everyone out!
Logfile of HijackThis v1.99.1
Scan saved at 9:52:28 AM, on 5/14/2006
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180)

Running processes:
C:\Program Files\Common Files\Symantec Shared\ccSetMgr.exe
C:\Program Files\Common Files\Symantec Shared\ccEvtMgr.exe
C:\Program Files\Common Files\Symantec Shared\SNDSrvc.exe
C:\Program Files\Common Files\Symantec Shared\SPBBC\SPBBCSvc.exe
C:\Program Files\Common Files\Symantec Shared\CCPD-LC\symlcsvc.exe
C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\MDM.EXE
C:\Program Files\Norton AntiVirus\navapsvc.exe
C:\Program Files\Norton AntiVirus\IWP\NPFMntor.exe
C:\Program Files\CyberLink\PowerDVD\PDVDServ.exe
C:\Program Files\Digital Media Reader\shwiconem.exe
C:\Program Files\Lexmark 5200 series\lxbtbmgr.exe
C:\Program Files\Common Files\Microsoft Shared\Works Shared\WkUFind.exe
C:\Program Files\Microsoft IntelliPoint\point32.exe
C:\Program Files\Zone Labs\ZoneAlarm\zlclient.exe
C:\Program Files\Common Files\Symantec Shared\ccApp.... Read more

A:New user hijack this log, Just checking

Are you having any problems

Read other 1 answers

Hi All,
I was wondering whether it is possible to check if a particular username exists on a remote machine given the machine's IP address.

(something like : Net user dude100 //

Shafeeq M.

Read other answers

Hi All,
I was wondering whether it is possible to check if a particular username exists on a remote machine given the machine's IP address.

(something like : Net user dude100 //

Shafeeq M.

A:checking user name on a remote machine ???

cooldude3K said:

Hi All,
I was wondering whether it is possible to check if a particular username exists on a remote machine given the machine's IP address.

(something like : Net user dude100 //

Shafeeq M.Click to expand...

Read other 1 answers

Hi you guys have helped me out in the past bigtime and now i need your help again.

I have noticed over the last 10 days or so that my computer freezes after a while of mouse "inactivity" I use my machine to render out 3d video files etc and so it is important I can leave it on over night to render out time consuming 3d renders however when i return to my p.c. the mouse is frozen and likewise the keyboard is dead and i have to reset my machine, i cannot identify the problem nor the exact period of time it takes for the "freeze" to happen.

Can anyone of you guys guide me through a fix for this.

The only things out of the ordinary that have happened prior to this are..

Just recently moved address and now access the internet via a usb plugin wireless reciever namely a TP-LINK 54M Wireless USB Adapter model no. TL-WN321G this installed and worked OK straight from the off AND also a friend gave me a micro 4gb Micro SD card, he had placed a video file on this for me and i read it with a micro SD card reader via usb (perhaps this card had a virus on????) as my computer had trouble reading the card but no trouble reading my own.???

Thanks for your time and reading. I await your commands lolz.

heres the log...

Logfile of Trend Micro HijackThis v2.0.2
Scan saved at 10:38:44, on 31/08/2009
Platform: Windows XP SP1 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP1 (6.00.2800.1106)
Boot mode: Normal

Running processes:
C:\WINDOWS\sy... Read more

A:Computer freezes after a while of non user input

My machine randomly crashes whilst using it not just when left!!!!, Please help.

Read other 3 answers

Hey guys,
When I first boot up my computer I notice that cmd.exe keeps launching every time with the below-provided entries. I don't know what's happening but after a few minutes of being open with the below screenshotted entries, cmd just exits and it's like it was never there. What is this? why does cmd.exe keep being launched  and what do these commands do? Anybody with basic understanding of how to use cmd.exe should be able to tell me what's going on here, but I have no idea/. Is this a trojan or something?

Read other answers

is there a way to make it so whn a batch file asks for user input, the characters come out like ****** that? i can do this with AutoIt but i dont know how to do it with batch files..

help appreciated!

A:**** Characters for User Input in batch

Read other 6 answers


I want to create an excel based calendar system for monitoring staff holiday!

Basically I want staff to be able to open a file, and be presented with an input screen where they indicate their name, date and have a small description box which will then get pulled through to a weekly calendar sheet.

I have created how I would like to weekly sheet to look, but have no clue on how to get the above description to work!!

i have attached the file so far!! Any help would be greatly appreciated!!

A:Excel - user input form

Read other 12 answers

I am getting the
HID Non-User Input Data Filter (KB 911895) error when I start up

and also the error:

Status Box

The feature you are trying to use is on a CD ROM or other removable device and is not available
Insert the status disk and click "OK"
I am not sure if these two are related but they both start about the same time. I just got finished removing the Security Suite with the help in the infections forum.

I am running Windows XP Pro SP3 and I am using a Microsoft wireless keyboard and mouse as interface devices connected through a USB port.

A:HID Non-User Input Data Filter & Status Box

See Comments Here.Louis

Read other 7 answers

Recently i was battling with a pretty nasty virus and shortly after its removal, i restarted my computer and it popped up saying it was installing new hardware... A non user input data filter but that there was an error during installation. Ever since then, my wireless ketboard and mouse functions erratically and sometimes not at all, and then will function fine at other times. I did a windows update and it tried to update the Non User HID but it had an error with that. I attempted to uninstall and reinstall my wireless drivers and tried different usb ports but it always gave me the same installation error. How can i solve this issue so that i can get my usb devices to work properly?

My computer is running Windows Xp Professional Sp2

A:Non User Input data installation error

No Ideas? Techs?

Read other 1 answers

t will wake up, even if I have not moved the keyboard and mouse.

The way it is supposed to work is that it is not supposed to wake up until I tell it to, correct? (usually with the keyboard and mouse)

I found this with a google search


1. Open a command prompt and run the command

powercfg -devicequery wake_armed

The command will list all the devices which can wake up computer.

I've done this and the only results I get are

1. HID Keyboard Device
2. HID Compliant mouse (001)

So, it's not my USB wireless network adapter.

Also, I changed windows update from Install updates automatically, to Download updates but let me choose whether to install them. On the previous setting, it was set to download and install them every day at 3AM, but I don't think this is it, because this is not the only time it will wake up without me touching the keyboard or mouse.

I also have Emsisoft Anti-Malware which is set to download and install updates every hour, which I want it to. Maybe I should ask them if there's a way it can do it without waking the computer up.

A:PC wakes up from sleep mode (without user input)



Originally Posted by PC person

Maybe I should ask them if there's a way it can do it without waking the computer up.

Maybe, but a better (and probably quicker) way would be to uninstall Emisoft (theres probably a removal tool) and temporarily install Microsoft Security Essentials | Protect against viruses, spyware, and other malware

If the problem continues, you know its not Emisoft thats causing it.

Otherwise, you might be wanting to have a look at scheduled tasks.

Read other 12 answers

I am trying to solicit the month in MM format from the user using an input box but after I enter the month, the Macro just stops without an error. I am trying to have the month value placed in the filename path so I can search a folder for specific files.

Option Explicit

Sub Folder_Workbooks()

Dim wkbCopy As Excel.Workbook
Dim Path$, Workbook$, RangeCopy$, RangePaste$
Dim Sheet%
Dim month As String

Application.DisplayAlerts = False
Application.EnableEvents = False
'set range address to copy from/to
RangeCopy$ = "K29:T53"
RangePaste$ = "A1:J25"
Path$ = "W:\Comptrol\Corp_Rep\MONTHEND\2002\Monthly Stewardship\OPEX\"
month = InputBox("Enter Month in MM format")
Workbook$ = Dir(Path$ & "*[color=royal blue]month[/color]*.xls")

'loop all workbooks in folder
Do While Not Workbook$ = ""

'assign sheet index to copy data to
Sheet% = Sheet% + 1

'open workbook to copy from
Set wkbCopy = GetObject(Path$ & Workbook$)

'copy cell values
ThisWorkbook.Sheets(Sheet%).Range(RangePaste$).Value = _

Set wkbCopy = Nothing

'try to find next workbook in folder
Workbook$ = Dir

Application.EnableEvents = True
Application.DisplayAlerts = True
End Sub

A:Solicit user info using input boxes

First of all, "month" is not an acceptable variable name. It's what's called a reserved word; you should at least name it something like strMonth. Not that I think that's what's causing your problem, but it's important to learn to name variables correctly.

The problem is in your syntax. You're asking the app to open the file called W:\Comptrol\Corp_Rep\MONTHEND\2002\Monthly Stewardship\OPEX\*month*.xls--you have your variable enclosed in quotes, and therefore it's looking for the literal string "month".

The line in question should read

Workbook$ = Dir(Path$ & "*" & month & "*.xls")

though I believe that using the asterisks this way will still cause you problems, as you cannot control which file is returned at which moment. Not a problem, I suppose, if only one file in the folder contains the month in question.

Read other 1 answers

Hi there.

I would like to be able to ftp files out using a batch/command script but prior to that I would like to be able to prompt a user at a DOS prompt asking them to enter a filename, then, that filename would be used to identify the file to ftp.

The ftp script is not a problem, but I have no idea on how you can prompt a user for a filename, if that is even possible?


A:Windows Scripts - prompting for user input

Here is what ive come up with so far... it does not work though.

@echo off

set /p filename=Please enter the filename.

echo %filename% is the file name you typed

put %filename% >> filename.txt


open x.x.x.x
var=findstr %filename% C:\Batch\easy.bat
rem put \\TORGFP2PNT\DBMktg\DAS\FTP\Mail_File\Mail_Files\%var%

Read other 2 answers

I have this macro that prints records based on a range that the user specifies. The only problem is that I'm still (trying to!) learning and would like to know how the code can be written so that the input box with ".....Starting Record" appears before and not after the input box ".......End Record" which is what is happening at the moment.

Sub Print_All()
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Dim x As Variant
Dim v As Variant
v = InputBox("Please enter the Ending Record number")
For i = InputBox("Please enter the Starting Record number") To v
x = i
Range("n2").FormulaR1C1 = x
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _

Next i
End Sub

Thanks in advance

Lee ​

A:Solved: Excel User Input Boxes

this is what I would do...

Sub Print_All()
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Dim x As Variant
Dim v As Variant

i = InputBox("Please enter the Starting Record number")
v = InputBox("Please enter the Ending Record number")
x = i
For i =x To v

Range("n2").FormulaR1C1 = x
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _

x= x +1
Next i
End Sub


Read other 2 answers


I am experiencing lockups of my windows configuration, even when reinstalling my windows 7 from scratch.

However, when my pc locks, it seems that only the mouse and keyboard freezes, because i see that background tasks are still working:
- Drive leds are still flashing
- When i was running a backup tasks, i saw the backup device leds also flashing.

How can i detect what is the culprit to resolve this issue?

I get no BSOD.

best regards,

A:My windows 7 locks-up randomly, but only USER INPUT!

What type of keyboard and mouse are you using? Are they PS2 or USB? You might want tro try PS/2 mouse&Keyboard to see if they works on yours

Read other 1 answers

hi has anyone any advice on this Microsoft optional update please i received today i have not installed it yet.

Microsoft - Other hardware - HID Non-User Input Data Filter (KB 911895)

Download size: 1.6 MB

You may need to restart your computer for this update to take effect.

Update type: Optional

Microsoft Other hardware software update released in June, 2010

i found this information >http://catalog.update.microsoft.com/...1-f95e9e17b6e6

A:KB911895 HID Non-user Input Data Filter

AFAIK, KB 911895 is a general purpose nickname for all driver updates that are pushed through windows updates.

I would suggest you download drivers from the manufacturer's website as and when you need them.

Read other 9 answers

Hi all, firstly let me say hello to everyone, this is my first time here and my first post

As to my problem, Windows seems to keep shutting itself down after about 1-2 hours of no user input. By this I mean, regardless of what programs are left running, if I do not move the mouse of press a button on the keyboard once an hour, the system will shut itself down.

This is not a crash, there are no errors, the event log shows nothing unusual, Windows runs through the full and proper shut down procedure as if I had clicked the shut down button myself.

I have checked through every option I can think of, I have looked at every option I can think of in the Power Options menu, including the advanced options, I have searched on Google and on here, and I can come up with nothing.

Any ideas would be very much appreciated. If you need me to upload any logs just ask. If I have posted this in the wrong section, feel free to move it to the right place.

Thanks in advance,


A:Windows shutting down when no user input for an hour

Try disabling fast startup if enabled: Fast Startup - Turn On or Off in Windows 8. I don't have great confidence in this possible fix, but what the heck.

Read other 15 answers

I have a form now that won't work for many folks because of "Form Controls stop working after December 2014 Updates". The fixes provided do not work for most people and many won't even attempt the hot fixes. I am trying to figure out a workaround. I know I can use WorksheetChange to get when an entry is put in a cell but I need to be able run a macro for a second entry and then display results in a third cell. On the ones with out the issue, right now on my form they put text in first box and it runs a macro (afterupdate) to validate certain things and then when they enter in the second text box, it runs another macro to validate that entry. Then they click a button to execute a third macro to get the results. Is there a way to do that without a form and command buttons?

A:Solved: VBA Alternate Way to get User Input not in a Form

Read other 6 answers

I have been using this script for some time now, and occasionally I get duplicate users, mostly because communication is to late. So I wanted to add 2 message windows (llnexists and llnexistsyes) I wanted to run llnexists right after the username check(line
482, but i cant seem to get it to work. I keep getting stuck in "a loop" with message: "A positional parameter cannot be found that accepts argument" 
Import-Module ActiveDirectory

Add-Type -AssemblyName System.Drawing
Add-Type -AssemblyName System.Windows.Forms

$DefaultValues = [PSCustomObject]@{
#### @domain.com ####
Domain = ""

#### A share for HomeFolders ####
HomeDir = ""

#### Home drive letter ####
HomeDrive = "P:"

#### Location in active directory ####
ADPath = "OU=test,DC=,DC="

#### Startup Script ####
StartupScript = "test.bat"

#### User is member of group ####
ADGroupMember = "agroup"

#### Available Classes ####
Class = @("testclass1","testclass2")



function NewStudentForm{
#### Text on New Student Form ####
$NSTitle = "Create new student account"
$NSBack = "Back"
$NSNex... Read more

Read other answers

I bought a 3585 Inspiron I5 two weeks ago, I have maybe 10 hours on it, most spent trying to find a fix for a serious P.I.T.A.  A pause or slow roll over  a selection box, linked text or image and the item is selected and open without a click by me. Things get opened and closed which  have to be closed or reopened repeatedly. I"m not really sure if it is a Dell"s or a Windows configuration/ set up but.  NIETHER seems to have a word to say about the problem.  Both websites  are totally silent about. Search with Google returns 100's of hits on the problem. Back when I was a computer loaded with Windows 2.0 I had the same problem but that got fixed in 10 minutes with a easily located and easy to change setting on mouses install disk.  I am hoping that one of you nice folks can give a fix that is explained so a senile old Far# cat get this fixed.  THANKS IN  ADVANCE,  Roger 

Read other answers

Hi All,

I am new to the form creation in access database, but i am very much familiar with queries and table creation. Now i want to create a form for the user to provide some inputs to show the results from table. And if they want to change any record of the displayed result then they need to click on edit option in form to edit those details. then those details need to be updated in source table also.

I am beginner in form creation i have given try to create it but i don't know where to start and where to end. Can you please anyone help me to create this form . May be if you have give some suggestion and idea's i can able to try myself.
Thanks in advance.



A:Solved: User Input form from table in MS access

Read other 16 answers

I don't know if this is the right place to request features/gripe/see what every one else thinks but I would like to know if there are any plans to allow users to input their own rule sets into ATA.  From my experience of ATA in my lab, this is a plug
and play solution to help relieve configuration of enterprise level security (help, not replace).  The problem that I have with this is that I have no ability to direct ATA the way I want to.  ATA directs me to the event's it wants me to see.  I
have to wait for ATA to tell me where my admins are logging into let it know that that behavior is acceptable.  There is no input prior to it's analysis to say these machines are my admin workstation or TS servers to perform admin functions.  Or
I don't care about these accounts so don't even bother processing anything tagged with their information.
I know the examples I gave are a little extreme or defeat the purpose ATA, but I don't like the feeling of solely relying on the heuristics of Microsoft and not having the ability to fine tune the product they way my company would need.  
Does anyone feel this way to?  Does Microsoft have any features ideas for features that will allow their users to have a more interactive control over their deployment of ATA?
Just honestly looking to the community for some input/knowledge/opinions

Read other answers

I have a query that has event date (Event_Start) where I use total min and max to get the first event (First Event: Event_Start with Min selected in the total row) and last event (Last Event: Event_Start with Max selected in the total row). When I use another column to calculate the # of Days between these 2 expressions (Days Between: [First Event]-[Last Event]), I get a pop up boxes that ask for First Event and Last Event. I can just hit enter on both and still get the calculation in the "Days Between" field in the query. How do I get rid of the pop up boxes when I run the query.

A:Solved: Calculated Field in Query getting user input box

Read other 8 answers

My wife shutdown her Dell Studio 1735 laptop prior to us going away for a few days (as she normally does when we do). Upon return and boot-up, if you acted immediately, you could select the user and enter a password, the system would load, and the desktop would appear. BUT, then after the first mouse click (say selecting a desktop icon or a tray icon, or the start button - does seem to matter what sort of action is taking) the system would basically go dead in that no action with any combination of the mouse or keyboard does anything (e.g, ctrl-alt-delete, alt-tab, clicking on an icon, trying to shutdown, etc.

I had to pull the battery, start up in safe mode (it gets hung up for a bit on safe mode as well), shutdown, and then restart in normal mode. Chkdisk has run a couple of times with no major issues. I've tried this about 10 times and every time, in every mode, the same results - the system seems to go "dead" to any input after the first mouse click or key stroke. My wife also said it happened after the machine was just sitting there idle a few minutes, where she couldn't even log in. So it may some sort of event/process issue.

That being said, I have no clue as to fix. Any ideas or help would be greatly appreciated.


A:Strange Vista xt64 hang-up at user input or?

NOTE: I have severe eye problems. If I do not respond to your postings, please PM another staff member for assistance.

NOTE: Please provide the following information for a more detailed response (even though you're not reporting BSOD's): http://www.techsupportforum.com/foru...ta-452654.html

I suggest starting all troubleshooting with the following diagnostic tests (located at this link: Hardware Diagnostics ). They'll save you a lot of time and heartache if there is a hardware failure, and you'll have the disks on hand in case you need them in the future:


H/W Diagnostics:
Please start by running these bootable hardware diagnostics:
Memory Diagnostics (read the details at the link)
Hard Drive Diagnostics (read the details at the link) - Test ALL of the hard drives.

Also, please run one of these free, independent online malware scans to ensure that your current protection hasn't been compromised: Free Online AntiMalware Resources (read the details at the link)
There are also free, bootable antivirus disks at this link: Free Online AntiMalware Resources - Bootable Disks

Read other 1 answers


I need to generate a report by letting user select the month and year (From and to) using a combo box. After that, the input is used to produce a report with calculated fields.

E.g.: The user want the report from Jan 2007 - Jan 2008. After he/ she select on the 2combo boxes, it takes the fields from the table and perform calculation before presenting it as a report.

How can I do that? Must I use form or report? Any references or sample I can refer to?

Thank you!

A:Access 2003 Report (Allow user input & perform calculation)

Use a form with the fields you want to base the report on and a submit button that will fire off the report using those parameters. You will need to code the button using some VBA to pass those parameters to the report.

Read other 2 answers