Using The Environment Variable To Open .bat File?

Nov 22, 2009

I try to use the environment variable to open .bat file in particular directory. However, cmd state that " cant find the specified path". FYI, i still can open other file like txt, etc in the same dir.

View 5 Replies


ADVERTISEMENT

Setting Environment Variable For A Program?

Sep 6, 2007

in my "program files" dir... i have a folder name "putty" in this folder is :putty.exe pscp.exe psftp.exe plink.exe i would like to run these programs from the command line... as thats the only way a few of them will run since they have no gui. anyways.. i know where to set the variable My Compuer > Properties > advanced > environment variables. i named it putty and thought it should be set to something like:c:Program Filesputty i think Im missin something... its not workin out so far.

View 4 Replies View Related

Regedit Changes To Environment Variable Not Taken Into Action?

Jul 27, 2005

I uses command line > regedit /s myhome.reg where the file myhome.reg is: myhome.reg Windows Registry Editor Version 5.00 [HKEY_CURRENT_USEREnvironment]
"HOME"="G:\Recherche_ST\Charles\textes\" then I open a cmd.exe shell and try: > echo HOME it seems that the environment variable is not set.BUT if I go to the env var panel of the advanced / system dialog, I see that the HOME env var is set. If I press OK in this panel, then it is available in a cmd.exe shell.

View 10 Replies View Related

Setting Environment Variable In A Shortcut Icon?

Jul 11, 2009

I have a Windows program that reads an environment variable and depending on its state the program is configured differently. Where I can set the environment variable in the system properties and at the command line, what I really want to do is create multiple Windows shortcut Icons on the desktop, one for each possible environment variable setting. I can then select the desired runtime configuration by selecting the corresponding icon.I have tried the following on the Windows command line and it works, however when I put the same in the Icon properties->Target it complains"set ENVIRO_SETTING=1 && program_name.exe"

View 5 Replies View Related

Setting Up A Default User Environment Variable?

Jun 20, 2005

Does anybody knows how or where to setup a default user environment variable ?We want to create this variable for each user that logon in to the same pc?

View 2 Replies View Related

Setting The Environment Variable ClientName To Store Some Information?

Jul 15, 2005

I have an application that uses the environment variable ClientName to store some information. It looks like this env. variable is set in the registry in the hkcu hive. It is set for console, is this some sort of default and can I change it? Do I have to change it here or is there a control panel somewhere that handles this setting? I first looked in the System control panel, under Environment Variables but didn't see it there at all. I want to set this to the machine name cause I have a number of identical systems and they are currently all set the same, I'd like them unique.

View 3 Replies View Related

Accidentally Deleted An Environment Variable Bringing Back?

Jul 26, 2010

I didn't see which one it was, but its silly that it gives you no warning and I accidentally clicked the delete button on the system variables than the user variables.I've restarted my computer and so far its fine, but does anyone know what I can do to get it back? Do I need it?

View 1 Replies View Related

Separate Multiple Entries In Environment Variable With Semicolons Automatically?

Feb 8, 2007

I'm trying to define an environment variable, CLASSPATH, to link to all the .jar files in a certain folder, C:cp. This folder contains 16 different .jar files. CLASSPATH needs to look like: file1.jar;file2.jar;etc Does anyone know a way to separate multiple entries with a semicolon automatically, rather than entering each .jar file? Perhaps using a wildcard (*) of sorts?

View 1 Replies View Related

Path Environment Variable: Add A Path Value To Existing Path Statement?

May 12, 2004

I'm trying to add a path value to my existing path statement for XP (via control panenel->system, advanced tab, environment) but it is truncated. If the size limit is 1023 chars, then I'm well under this.I change the PATH variable via:Right click My Computer, Properties, Advanced tab;

View 1 Replies View Related

Batch File: Set Output Of Program To A Variable?

Feb 3, 2006

I'm trying to set the output of a commandline program to a variable in a Windows batch file. For example, if I'd like to read the output of the "ver" command (which tells you what version of window) to a variable called "myvar", how would I do it? So "ver" outputs for me: "Microsoft Windows XP [Version 5.1.2600]" How would I read that into a variable called myvar?

View 9 Replies View Related

Batch File: Setting Output Of Program To A Variable / Correcting Command?

Sep 1, 2009

I have gone through the above thread. I have a specific requirement to count the files in a folder and set it's count value to a variable in the batch script. I will then use this value later in the program. e.g. for /f "delims=" %a in ('dir /a-D /B /s "C:codedepotinstallData File DistribProductName" |find /c /v ""') do Set tempVar=%a I am having trouble with the space in the path. I tried using escape with slash '' but didn't help. Can anyone correct my above command and get the count in the tempVar?

View 1 Replies View Related

File Open - Save As - Common Dialog Takes Too Long To Open

May 26, 2010

I was having this problem on my old install of XP, which desperately needed a new install. In any case, I'm now using a freshly installed version of XP, and everything has been running perfectly for about 2 weeks. Suddenly, this one problem reappears: The File Open / Save As dialog box (aka Windows Common Control / comctl32.dll) takes forever to open (20 seconds to 60 seconds). I just did a chkdsk and defrag, and that did not solve the problem. Also, there are no network drives connected which could be slowing things down. This happens in both MS programs (such as Notepad) and 3rd party programs (such as Firefox).

View 3 Replies View Related

Cannot Open Every Folder - Re Open File View Closed

Dec 22, 2006

Why can't I get XP to open every folder using the "Details" option? I do have it set so that it remembers (most of the time) to re-open that folder with the file view it was in when it was closed, but I want XP to open every new and old folder with the "file details" view. Seems like a simple thing, but I can't get XP to understand that's what I want.

View 2 Replies View Related

Can't Open Chm Files / Cannot Open File

Aug 4, 2005

Tonight I tried opening a chm file and it failed, with that error message. This happens for any chm file I have tried. I don't know when this broke, I know I used to be able to open chm files with no trouble but I can't pinpoint the last time it worked.I've searched around and found some references to this, but no solution -the only relevant MSKB is for Win98. I tried regsvr32 hhctrl.ocx, deleting the hh.dat files, clearing IE's file cache; nothing has helped. I haven't made any significant recent changed to the system that I can think of.

View 14 Replies View Related

Open File With-Open Mode

Oct 20, 2010

Every file I try to go to, for instance I tried to go to system restore and it pulls up the open with screen. Everything I try to click on it will ask me which program to use. I can't even get on the internet accurately.

View 6 Replies View Related

Loss Of Internet Connectivity:after A Variable Period Of Time Of Being Logged?

Sep 22, 2005

I lose internet connectivity after a variable period of time of being logged into my computer. I can actually ping and do tracerts to verify that I can "see" the internet. But, my any other methods of accessing the internet do not work! I can't surf using a web-browser, my IM clients do not work, and I can't play any of the online games. I can still share files with computers on my local network.

View 2 Replies View Related

Batch Files Environment Variables

Jan 10, 2008

I've been trying to get something working with batch files and been running into a problem with env variables. First off, I have a batch file which is launched by cruisecontrol and this batch file would set a couple environment variables. then it will call a second batch file which would setup some more environment variables and exit.

View 2 Replies View Related

Deleted Path In Environment Variables

Jul 1, 2005

I was adding a path to the environment variables today and deleted the path line. Now I'm having some system problems. Does anyone know how to fix? Is there an easy way to rewrite the Path line? I'm running Windows XP and have zero knowledge of C Shell or executing shell commands, BTW.

View 6 Replies View Related

Java Runtime Environment Problem

May 27, 2007

hello, i am from Turkey-istanbul. i am using xp (sp2 - ie7). i have got some problems with Java Runtime Environment. because of my job, i am using java applications on explorer. this applications dont run with Java Runtime Environment. they want to remove Java Runtime Environment on my pc. they works with Microsoft Virtual Machine. other programs works with Java Runtime Environment. what shall i do? how can i run all my programs together?

View 14 Replies View Related

Java-j2se Runtime Environment 5 Update 10

Jan 6, 2007

When I first downloaded initially no problem. Now I go to a webcam it says click to view then it shows only an advert then a grey screen and not the Java controls but java is installed and internet options marked correctly -any ideas of problem. I use xp 2002 service pack 2 internet explorer 6

View 5 Replies View Related

System Restore In Multi-boot Environment?

Aug 7, 2007

how System Restore works in a multi-boot environment? (I am not concerned with Vista, but with WinXP only).If I have O/S A and B, and I perform a System Restore in O/S A, is there any possibility that O/S B will also get rolled back to the same date? In O/S A, should I allow System Restore to monitor the O/S B partition, or should I switch off System Restore on that drive?

View 4 Replies View Related

Multi-IP Bridge Environment With Router And Adapter 802.1

Aug 30, 2005

I use a an Asus WL-330g wi-fi 802.11g wireless ethernet adapter to connect to a 802.11b wireless router, the SMC7004VWBR. The wl-330g works fine when directly connected to the computers ethernet port.However, I want to use a hub.

View 7 Replies View Related

Server Environment Causes Any Problem For Files Sharing?

Jan 25, 2005

Has anyone experienced any problems with using windows XP in a server environment? I have a small office of about 7 pcs that use the server for file sharing and printing.

View 1 Replies View Related

Custom Config The Working Environment For Individual User?

Aug 3, 2005

I custom configure the window environment for each individual user in WinXP?I know how to go to MMC->Group Policy.There are computer config and user config.
All the parameters are in user configuration -> Admin Templates But, how can I set different sets of them and apply these templates to different groups?

View 3 Replies View Related

Configure A 2000 Server In An Active Directory Domain Environment?

Apr 17, 2008

I am trying to configure a 2000 server in an active directory domain environment and have a simple question.

I have several accounts and would like to configure them to be administrators on the local workstations, but not a domain admin. I can't quite figure this out. It'd be nice to be able to do this all from the server. I'm assuming it's a domain policy.

View 4 Replies View Related

Installing New Version Of Java Runtime Environment / Getting Installer Error?

Jul 28, 2009

Today I wanted to install new version of Java Runtime Environment but I have Windows Installer error: http://img193.imageshack.us/img193/2...sinstaller.png Where is a problem ?

View 14 Replies View Related

File Won't Open

Jul 15, 2006

I accidentally moved a file to a "Prefetch" folder in "Windows" in "Local Disk" in "My Computer" and now I can't see the documents I placed in that folder, because my computer says my access is denied even though I am the main and only user profile. I have some very important documents there and could seriously need help. I have Windows Xp Dimension 4400 and Intel Pentium 4

View 17 Replies View Related

Jpg File Is Not Open

Mar 30, 2006

I have about a thousand jpg files. I now can only view the ones that I have added in the last few weeks. All of the other jpg's will not view.They will not view in thumbnails, in Firefox, in Paintshop Pro, In Windows Office Picture Manager, in Freshview or in Paint.Can somebody please help, these are cherished photos. The file sizes seem to be the same as ever. (ie some 12K some 159K etc)When I try to load them into Paint Shop Pro I get the message - "The specified file cannot be identified as a supported type".When I try to open them in Microsoft Office Picture Manager I get the view of a little square with a red X in it.When I try to open them with Firefox I get the message "cannot be displayed, because it contains errors".When I try to open them as thumbnails in Explorer I just get a square with a little red X in the middle.

View 14 Replies View Related

Windows Cannot Open File

Aug 24, 2006

My folders are not the standard yellow. When I attempt to open any of the folders, I get this message,"Windows cannot find a program to open the file"

View 3 Replies View Related

Can Not Open File After Uninstalling

Jun 29, 2010

I am using Xp on my computer. After uninstalling a program all short cut icons switched to adobe acrobat icons. Now I get this message. Windows can not open this file: windows needs to know what program created it.

View 9 Replies View Related

Cannot Open Ntfs File?

Mar 8, 2006

my computer at the start up screen runs the check disk tool from windows.It should only try to run the tool once but when it starts up it says connot open or access the ntfs file.Also I tried to start my computer in safe mode today and it pulled upall the way to the black page where it displays the file names but it froze and never went any farther.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved