Path/File Access Error - vb6

In the below Code i get a Path/File Access Error In Vb 6 .
Open App.Path & "\testing.Bat" For Output as #1
This error happens in windows 7 PC's only & not at all times & Only in sometimes
any virus issue involved here?
Any one give me a solution . Please ?

If App.Path is c:\Program Files, it's most likely a rights issue. On Windows 7, even if you are an Administrator, you don't always have full rights to Program Files.

When you launch you Visual Studio 6.0 IDE, make sure you right click the icon and select "Run As Administrator" instead of just running it normally, you can also right click the shortcut icon, select properties, and in the Compatability tab, you should be able to check "Run As Administrator" so that every time you click the shortcut for Visual Basic 6.0, it will run in admin mode (and may ask/prompt you every time, in which case, you must select Yes). In this case, the File/Path access error will go away :).
Let me know how you get along and if you need more help.

Related

Windows 10 installation

I installed windows 10 on my computer.
Every time I restart my computer, my all new files disappear
and my desktop is empty!!!
Is it a bug or setting issues?
How can I restore my files back
Thanks in advance!
You somehow corrupted your explorer.exe or changed a registry setting :
If you corrupted explorer.exe, best bet is to do a repair or system restore.
To check if explorer.exe is set to your shell:
Ctrl+Alt+Del to bring up task manager. Click File>Run new Task.
Type REGEDIT, click ok.
Click the plus sign (navigate through) entries:
-HKEY_LOCAL_MACHINE
-SOFTWARE
-MICROSOFT
-WINDOWS NT
-CurrentVersion
Click the folder WINLOGON
in the box to your right, find the entry Shell.
If the data correspondig to it is not Explorer.exe, double click Shell and modify it to Explorer.exe.
Close the registry,
Ctrl+Alt+Del to bring up Task Manager.
File>New Task. Type explorer,
click ok.
I think something is gone wrong by the installation. You can look for the files in C:/users/"you username"/desktop if they arent show there you can try other users in the /user/ directory. Maybe you have a bit of luck and the files are stored by the wrong user by some weird reason.
In the most cases the best solution is to reinstal Windows 10. I think it is faster than looking for an solution. (when you havent install a lot of software)
How you can restore your windows (clean instal) it is explained in this video:
https://www.youtube.com/watch?v=qzTNjs8k15Q
Make sure you have an backup from your data ;-)
(sorry for bad english, iam from holland ;-) )
yes it looks like the installation process has not been taken place properly without any interruptions.
The most convenient solution in my experience is:-
1.search locally 'recovery options'through windows 10 search icon on the left bottom corner
2.click "get started" button under "reset my pc".
3.select the option "keep my files".
then once you are safely back in windows 7, again start the process of updating to windows 10 in a fresh manner WITH the pc plugged in to power and with a stable internet connection.

WMIC Product GET Name - Invalid Class

I am trying to list all of the programs currently on my Windows 8.1 machine. I believe recently installed software is preventing windows from booting up. I have access to the command line and I have been trying to use the wmic product GET Name to see what I can uninstall from the command line. I read that you have to enable the WMI support tools in Management & Monitoring Tools, but I don't have access to that. Does anyone know if I can enable that from the command line so I can figure out why I am ultimately getting a EDIT:0x000021a error on start up.
Try
This is not a full list (wmic). This is only products installed with Windows Installer. There is no feature for everything.
However as I said in my previous post nearly everything is listed in the registry.
So to see it in a command prompt
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s
Also your error code seems invalid. There is no 27a windows error or 0xc000027a NT Status code. It seems wrong for a COM containing NTSTatus 0xd000027a or COM with Windows error 0x8007027a.
Clean Booting
Each of the three steps turns of programs, services, and drivers in increasing amounts. Thus narrowing down the possible culprits.
Clean Boot
Click Start - All Programs - Accessories - Run and type
msconfig
Then go to the Startup tab. Untick everything. Then go to the Services tab. Tick Hide All Microsoft Services and untick everything that's left.
Reboot. If this solves your problem reenable ½ of the services/startup items until you find which one.
Advanced Clean Boot
If the above doesn't help.
Download Autoruns from http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx
Start the program by right clicking and choosing Run As Administrator and click Options menu - Filter Options and tick Hide Microsoft entries and clear Include Empty Locations. Untick everything left.
Reboot. If this solves your problem reenable ½ of the items until you find which one.
Safe Mode
If the above doesn't help.
Use Safe Mode with Networking if you need internet access.
Click Start - All Programs - Accessories - Run and type
msconfig
Then go to the Boot tab and click Safe Boot (also tick Network if needed). Reboot. Come back here and untick Safe Boot to return to normal mode.
or
If your computer has a single operating system installed, repeatedly press the F8 key as your computer restarts. You need to press F8 before the Windows logo appears. If the Windows logo appears, you will need to try again. [From Start - Help and Support]
Startup Repair
If your computer has a single operating system installed, repeatedly press the F8 key as your computer restarts. You need to press F8 before the Windows logo appears. If the Windows logo appears, you will need to try again. [From Start - Help and Support].
On the Advanced Boot Options screen, use the arrow keys to highlight Repair your computer, and then press ENTER.
Select Startup Repair.
Startup repair makes a log file. See C:\Windows\System32\LogFiles\Srt\SrtTrail.txt.
To access if Windows won't start, on the Advanced Boot Options screen, use the arrow keys to highlight Repair your computer, and then press ENTER.
Select Command Prompt.
Type
type C:\Windows\System32\LogFiles\Srt\SrtTrail.txt |more
Also type explorer in your command prompt and see what happens.
My Explorer fixes listsways of using windows without the graphical shell.
To See if a Fix is Available
In Control Panel (and select Classic view in the left hand pane) choose Problem Reports and Solutions (type problem in Start's search box), go to Problem History, right click your error and choose Check For Solution.
You may also right click and choose Details for more info. Post those details here. The Fault Module Name is the important information.
If the problem affects Control Panel press Winkey + R and type wercon (or type it in a command prompt).
Close Explorer and Start a Command Prompt
Close any Explorer windows
Start - All Programs - Accessories - Right click Command Prompt and choose Run As Administrator.
Click Start. Ctrl + Shift + Right click a blank spot (just above the power buttons is one place) then Exit Explorer.
Press Ctrl + Alt + Delete then Task Manager.
Check all explorer processes are closed. On the Process tab select explorer and right click and choose End Process, repeat if more than one explorer in the list.
Then to restart explorer after trying each of the following
Press Ctrl + Alt + Delete and choose Task Manager
In Task Manager click the File menu then New Task (Run) and type explorer
If You Can't Start Explorer at All
Press Ctrl + Alt + Delete and choose Task Manager
On the Process tab click Show Processes From All Users to elevate to Administrator
In Task Manager click the File menu then New Task (Run) and type cmd
Other things you can try typing
Explorer
Explorer c:\
Explorer /e,c:\
wercon
control
iexplore
rstrui
If you can't start a folder window use the Browse button in the New Task dialog. Remember you need to right click and choose Open rather than double clicking.

your preferences cannot be read

I have a problem every time I open the chrome.
I'm getting the error message:
Your preferences cannot be read.
Some features may be unavailable and changes to preferences won't be saved.
So, I have to sign in at chrome every fresh start.
I have search the web and the solution to reinstall chrome doesn't work for me. I find that the problem is a missing folder but I don't know who.
My operating system is Windows 8. Any help to overcome with my problem is more than appreciated.
Exit Google Chrome completely.
Enter the keyboard shortcut Windows key+E to open Windows Explorer.
In the Windows Explorer window that appears enter the following in the address bar:
%LOCALAPPDATA%\Google\Chrome\User Data\
Locate the folder called "Default" in the directory window that opens and rename it as "Backup default."
Try opening Google Chrome again. A new "Default" folder is automatically created as you start using the browser.
fix, error: preference files cannot read."
go to control panel
programs
uninstall
click on program getting error.
click repair
this fixed my problem.
this problem can be solved easily.. once you have setup everything after the error message i.e bookmarks and sync, Run CHROME IN "ADMINISTRATOR MODE" every time you want to open chrome..that solves the issue..

command prompt anywhere in Windows 7 (native functionality)

I got this tip from a website that "shift + right click" on a folder in explorer in win7 will give us a context menu option by which I can open command prompt right there.
I am looking for a hack that can make this simpler so that whenever I "right click" on a folder in explorer, I always get that "shift + right click" effect.
I am not looking for any info on powertoys.
I need help on exactly what I said above; there has to be some registry hack that makes that "shift" default for every right click on the folder name.
Delete the registry key HKCR\Directory\shell\cmd\Extended. It works for me on the 64-bit version of Windows 7 Ultimate.
http://www.addictivetips.com/windows-tips/windows-7-elevated-command-prompt-in-context-menu/ says you also need to delete HKCR\Drive\shell\cmd\Extended if you want the same to apply for drives shown in Computer, and HKCR\Directory\Background\shell\cmd\Extended for the empty space inside a folder window.
I also had the same question about viewing the cmd prompt without the key combination recently. I am on Windows 8.1 and found that PleaseStand's solution works perfectly.
PleaseStand's solution mentioned worked great for me:
Delete the registry key HKCR\Directory\shell\cmd\Extended.
It works for me on the 64-bit version of Windows 7 Ultimate.
This says you also need to delete HKCR\Drive\shell\cmd\Extended if you want the same to apply for drives shown in Computer,
And HKCR\Directory\Background\shell\cmd\Extended for the empty space inside a folder window.
I might add to anyone who might wonder, HKCR means HKEY_CLASSES_ROOT

Start Directory in Windows Explorer running Vista not set properly?

When I right click on Windows Explorer, select Properties, it opens a panel, I set the value of "Start In" to "C:\", which means I want it to point to my C: drive when I open explorer, but it's not working, it always points to "Documents". On XP I did the same thing and it worked, but now I got this new PC with Vista, it doesn't work? How to fix this?
Use the explorer start params, e.g.,:
%SystemRoot%\explorer.exe /e,D:\Downloads

Resources