PDQ - run batch file on user current folder...
Hi,
I'm running batch file:
cd %USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files\
but it's not opening the current logged on user
how to deploy it on current logged on user?
thanks,,,
This topic first appeared in the Spiceworks Community
This is not working for me in Windows 8. I have a shortcut to an EXE file located in"C:\Users\admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup". If I set the shortcut to run as administrator (screenshot attached) then it does
not run at all on startup. If I uncheckmark "Run as Administrator" then it starts fine (but does not have enough privileges to do what it needs to do). In Windows 7 this was not an issue since the current user was a local administrator and did
not need to elevate its privileges further.
Any ideas how I can work around this problem? Thanks!
Ugh... it won't let me attach a screenshot until my "account is verified", whatever that means.
Similar Messages
-
Getting the famous error :
... is not recognized as an internal or external command`*
When & Where :
not sure about the total range of the problem,
Here I can't run batch files and "devneve.exe"
sample Batch could be :
@echo off
clr
'clr' is not recognized ...
**Here are the keynotes:**
1. I run it as an admin (cmd)
2. The Path variable seems to have anything needed, Powershell's path is also there sys32..v1
3. I'm going into the current directory of devnev.exe ...
4. ran also "devnev.exe"
5. I don't have 2 cmd s in a known folder
6. the autorun registries for command prompt were deleted
7. the cmd extensions were disabled and re-enabled
8. Avast IS 9 is running,
9. The system seems to be fine
10. all .Net frameworks are installed
11. for a test jetAudio or ILDasm could be executed from the cmd
Win 8.1 Pro , CPU i7, VS 2013 upd2thanks,
this was one of the silliest problems I've ever encountered, my bad fault,
the file is DevEnv not DevNev...!
but about the clr, don't know from when I added them to my batches, but I'm sure the scripts were working correctly a time ago, maybe by a mistake I changed them, I thought it is the most known command, but I was wrong, there is a long time gap between me
and DOS. -
Event handler if new File added in current folder
Hi folks,
I'm just trying to write a little jsx script for Bridge CS6.
How can I implement an event handler that will react if the user adds a new thumbnail (new file) to the current folder in bridge.
I've tested it with this code, but it doesn't work:
app.document.thumbnail.watch ("children", function(id, oldVal, newVal) {
$.writeln (oldVal + " to " + newVal);
// some code here
Thanks. GreetingsBeautiful. Works as advertised. Thank you for pointing it out to me. Unfortunate that a basic subset of this extension's behaviour doesn't ship with Thunderbird out of the box, though.
-
How to run batch file using trigger?
Hi, i am trying run a batch file using a trigger on a table.
say i have a table XYZ(col_1 varchar2 primary key, col_2 varchar2)
the values of col_2 keeps changing and col_1 are constant
whenever the value of col_2 in any row changes from "on" to "off" i want to run a batch file C:\Users\ABC\Desktop\test.bat
i did some searching but couldn't find any solution. Thanks in advance
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production>
the script will be started around 60-70 times a day
>
No - as marwim said the script will be executed every time the trigger is fired. And that trigger, depending on how it is written, might be fired several times for the same transaction.
And if the trigger is fired the script will be executed even if the transaction that caused the trigger to fire issues a ROLLBACK.
Triggers are non-transactional. You need to clearly define the business rules for when the script should run. Should it run only when the transaction is COMMITTED? Or should it run if the transaction executes even if the transaction performs a ROLLBACK?
A trigger is the wrong solution for your problem.
Please clarify what the business rules are that should control the execution of the script. -
HOST IN 10g to run batch file on application server
Hi,
I am trying to deploy a form from 6i to 9i. the form use Host builtin to run batch file on machine. this works fine when i run form on client server environment. but when i run the same form after compiling in 9i and run on 3 tier model and try to run batch file from form it give me error that
'ftp' is not recognized as an internal or external command,
operable program or batch file.
any suggestion?It could be because the Host session doesn't have any environment variables set i.e. there is no PATH variable, so it simply doesn't know where to look to find the 'ftp' executable. You could try supplying the explicit path of the ftp executable and see if that works. (This was a problem I had running Host commands on a Unix application server.)
James -
Error running batch files from java source file???
Dear Friends,
hi,
this is with response to a doubt i had earlier ,
i want to run batch files from the java source file ,i tried using this code (here batrun is the batch file name that contains commands to run other java files)
try
String [] command = {"c:\\vishal\\finalmain\\batrun"};
Runtime.getRuntime().exec(command);
catch(Exception e)
but i got the following error.
java.io.IOException: CreateProcess: gnagarrun error= 2
plz. help me, i tried all combination w/o success,
in anticipation(if possible give the code after testing)
Vishal.hello there,
i solved the prob. by using
cmd /c start filename ,but i need to pass parameters ie
cmd /c start java "c:/vishal/runfile a b" where a and b are the parameters. but it is not accepting this in Runtime.getRuntime.exec(),
any solutions ?????????
regards,
Vishal -
Running batch files thraugh java by passing parameters
Hi
I want to run a batch file by passing some parameters.
Eg: copy.bat "D:\live\hoe.txt" "D:\test"
while doing this from command prompt its working and i have written some java code for running this batch file.
String live="D:\\live\\how.txt";
String test="D:\\test";
String bat="D:\\copy.bat";
String[] command = new String[3];
command[0] = bat;
command[1] = live;
command[2] = test;
try {
Runtime.getRuntime().exec(command);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
but this time its not copying the file;
Please help.Just another cross poster.
[http://www.java-forums.org/new-java/15005-running-batch-files-thraugh-java-passing-parameters.html]
db -
How to run batch file from oracle forms 9i
Hi everyone.
i have a data in csv file. i want to upload it to my database. i am using sql loader for it.
i have made a batch file which run the sql loader and transfer my data to database.
How to run batch file from oracle forms 9i.
when i press the button, nothing uploads in my database. (when i simply run the batch file it works).
here is my code
Begin
HOST('C:\temp\batchfile.bat');
message('done');
end;
Thanks in advance
regards
sajidthis is my log file, when i run manually.
SQL*Loader: Release 10.2.0.1.0 - Production on Thu Jul 1 23:27:53 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: file_to_upload.ctl
There are 2 data files:
Data File: sk.csv
Bad File: sk.bad
Discard File: none specified
(Allow all discards)
Data File: sk1.csv
Bad File: sk1.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table KHAN, loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
SR FIRST * , O(") CHARACTER
DATES NEXT * , O(") CHARACTER
AGENT NEXT * , O(") CHARACTER
COUNTRY NEXT * , O(") CHARACTER
TRANSACTIONS NEXT * , O(") CHARACTER
PKR NEXT * , O(") CHARACTER
USD NEXT * , O(") CHARACTER
BANK NEXT * , O(") CHARACTER
Table KHAN:
11088 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 132096 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 11088
Total logical records rejected: 0
Total logical records discarded: 0
Run began on Thu Jul 01 23:27:53 2010
Run ended on Thu Jul 01 23:27:54 2010
Elapsed time was: 00:00:00.63
CPU time was: 00:00:00.17 -
Unable to run batch files in my EP server
Hi,
I'am unable to run batch files(go.bat and configtool.bat) on my EP server.Anbody please give me a solution.
With Regards
Pradeep.BIf your EP Server is on non-windows based environment then you cannot use go.bat & configtool.bat or else you can. If you are trying to execute these on unix based machines then you have to use go.sh & configtool.sh files.
Pradeep -
Can't run batch file in Windows 2008 R2
Trying to run batch file (manually first) with powershell commands.
Powershell commands work fine thru powershell but the batch file will not execute manually.
I am trying to run as administrator.
Is there a permission or policy I may be missing?
Thanks
Dave
Dave KozlowskiHi,
Some bat type command can't run in the powershell environment, you must confirm you have choiced the correct lunch tools.
Hope this helps.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Unable to run batch file through BO XI 3.1 server
IHi,
I am unable to run batch file (.bat) from BO XI CMC. the batch file is running fine through command prompt but fails at server. Error msg is "Running this type of program is disabled by your administrator".
Can you help?
Thanks in advance,
AvijitHave your administrator enabled the running of that type of program in the CMC?
Sincerely,
Ted Ueda -
Run Batch file using GPO in all users with Windows 2008 R2
Dear Sir,
We have to install one software packages in all laptops using GPO. we have batch file and using this we can install software.
is there any way to install automatic by this batch file?
this is not msi packages.
Regards,
Sunil
SUNIL PATEL SYSTEM ADMINISTRATOR> Please provide how to configure...
https://technet.microsoft.com/en-us/magazine/dd630947.aspx
https://technet.microsoft.com/library/cc779329.aspx
Greetings/Grüße,
Martin
Mal ein
gutes Buch über GPOs lesen?
Good or bad GPOs? - my blog…
And if IT bothers me -
coke bottle design refreshment (-: -
SQL 2008 Agent - run batch file not working
Hello,
I am having some strange issues with a batch file running out of SQL agent I'm hoping I can get some help with.
The batch file's purpose is to send some log files to a SFTP server.
The job has been working great for the past 3 weeks, however this morning it stopped working. The job doesn't error out, however the entire job completes in 00:00:00 duration and I'm given the following message
Date 4/7/2014 3:38:00 PM
Log Job History (***Log Transfer)
Step ID 1
Server *******
Job Name **** Log Transfer
Step Name run batch
Duration 00:00:00
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message
Executed as user: USERNAMERemoved . The step did not generate any output. Process Exit Code 0. The step succeeded.
The batch file looks like
echo *********************************
echo ** JOB EXECUTED %date% %time% **
if %errorlevel% neq 0 exit /b
C:
cd "C:\Program Files (x86)\WinSCP"
winscp /console /script=G:\Batch\LogTransfer.txt
call G:\Batch\LogTransfer2.bat
echo ** COMPLETED %date% %time% **
echo *********************************
I have numerous other batch jobs running on this server, no other job has had this issue. I have deleted and recreated both the job step and the entire job. I have recreated the batch files from scratch. I have also deleted the entire
contents of the batch file and just simply put in echo **** and still received the message so I'm near positive it has nothing to do with the actual batch file.
I have reset SQL Agent, as well rechecked that the SQL Agent account has run batch rights granted to it.
I moved the batch files to another folder, and they worked for about 4 runs until the same issue happened!!!
The job does execute 100% perfect if I run it manually via batch or if I kick it off starting the job out of SQL.
I am out of options here, does anyone have any ideas that could help me out?
Thanks,
RyanHello,
Try to edit the step, and on the Advanced page of that step try to configure the job to create a log on the location you specify (Output file). Try to run the step again and examine the log created.
Could you try to change the owner of the job to “sa” or to your Windows account? Maybe the SQL Server Agent account does not have access
to the following folders:
G:\Batch\
C:\Program Files (x86)\WinSCP
Alternatively, you can try to create a proxy account.
http://technet.microsoft.com/en-US/library/ms190698(v=SQL.105).aspx
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Run Batch File for Domain Computers on Startup
Hello,
I am trying to run a batch file I created to grab computer specs off of every computer on our domain. I have created a new GPO under my domain and under there I have the file sitting under Computer configuation>policy>windows settings>scripts>startup
and also computer configuation>policy>administrative template>system>run these programs at startup. Neither one seems to be working... I know the batch file works because I have tested it on multiple computers. Here is what the file
looks like:
@echo off
call :test >> \\10.0.2.3\users\rricks\computerinfo\%ComputerName%.log
goto :eof
:test
wmic csproduct get identifyingnumber,name,vendor
wmic os get osarchitecture
wmic os get name
wmic os get installdate
wmic computersystem get name
wmic computersystem get username
wmic computersystem get totalphysicalmemory
wmic baseboard get serialnumber
wmic cpu get name
I have also tried putting this file in the netlogon share folder on our DC with no luck. Let me know what Im doing wrong. Any help would be greatly appreciated.
Thanks,
Ryan> call :test >> \\10.0.2.3\users\rricks\computerinfo\%ComputerName%.log
Who has access to this shared folder you are piping to? Did you try
piping to a local file? %public%\blah.log :)
Martin
Mal ein
GUTES Buch über GPOs lesen?
NO THEY ARE NOT EVIL, if you know what you are doing:
Good or bad GPOs?
And if IT bothers me - coke bottle design refreshment :)) -
Task Scheduler won't run batch file automatically
So, I have a folder filled with the program and the necessary resource files needed in order for it to function. When I start the batch file manually, (double-clicking) it functions as necessary. However, when i schedule it as a task, it either says it "the
program has stopped working" "a file is missing" (although the file is indeed on the system and in the folder) or it starts the program but it opens it in cmd and opens up a text box with the directory of the folder. Also, I'm running a windows
8.1 with a x64-bit OS.
Any help would be greatly appreciated.Senor Vega,
It sounds like it might be a permissions type issue keeping your file from running properly.
Check to see what type of user account it is set to run under.
It may be that it needs to run under an account with administrative privileges, which you would need to ensure that you have “Run with highest privileges” selected.
If you are running the task from a standard user account, make sure you select “Run whether user is logged on or not” and select a user from the administrators group.
Also check the permissions of the batch file itself to make sure those are set properly.
Hope this helps!
Mike
Windows Outreach Team – IT Pro
Windows for IT Pros on TechNet
Maybe you are looking for
-
My XP printer no longer works with snow leopard over the network
My XP networked printer (Samsung 4200) no longer works with snow leopard after Mac update. Printer hooked up to XP and can access it through network. When I print it requests that I to authenticate the printer with a user name and password but it's
-
Please help I am receiving a werfault.exe application error in windows 8.1 for design premium cs5.5. The product was previously installed on this machine and worked fine. Today is did not load and said to re-install and I get the above error. Laura
-
Vendor master data change confirmation -Report Y_CD1_39000398
Hello All, In report Y_CD1_39000398 we can see the confirmation pending for the Vendor master data changs. There are some entries which are pending since last 5 years becasue the chagnes are rejected. Is there is any possibility to remove this so th
-
My select statement is working very fine in Development client, when it is transported to Production client, it is showing dump error because of huge data. how to rectify this error.
-
Have you tried the Cap1 pre-qual site? https://findmycard.capitalone.com/en/PageVersions/LandingPages/LP_UNS_QUICK_RWD_V01.aspx