Advertisements:




Directory Creation With Batch File


We use a batch file to install an application, mainly because the application requires a few pre-requisite items to be in place or it will bomb out terribly. In the batch file we set a few variables for directory names, paths to copy files to and from, ect. Two directories that i'm trying to have the batch file create are in c:userspublicdesktop"appname" and c:programdatamicrosoftwindowsstart menuprograms"appname" (putting the same directory with the various application shortcuts on the desktop and in the start menu).

However, when i run the batch file i get the error message "access is denied" for those two actions. I can manually create these directories without any trouble.given that this batch file ran without any trouble on our windows xp machines i’m at a loss for how to correct it.


View Full Post With 2 Replies

Related Forum Messages:

Please Follow Index to Quick Jump to the Message.


How To Convert Batch File (.txt) To Ms Dos File ?

Windows 7 notebook. How do i convert a short batch file (.txt) to an ms-dos file. In windows xp i could change it by using 'file type'.

Posted On: 2010-02-10 . View Related Posts . . View 2 Replies .

Directory Paths And File Access In Xp Mode

Hi all, i recently became a windows 7 user when i bought a new laptop. For many years i've been using an old 16-bit program (foxpro for windows 2. 6) under various versions of windows, up through and including xp3. It didn't work under win 7, so i purchased the online upgrade from home premium to professional so that i could download windows xp mode. This all worked well, and i'm able to use the old foxpro when running a virtual session of xp in a window. The only issue i'm having now is that i'd like to create an icon for the program on my windows 7 desktop so that i can run the program without the intermediary step of starting an xp mode virtual session. It appears from the documentation that this should be possible. But i'm having trouble with the directory paths under xp vs. Win 7. In windows xp, i store foxpro's program files in c:program filesfpw26, and i store my scripts and data files in c:documents and applications[me]my documents xyz. In xp, i created a shortcut to the executable, and under properties created a "start in:" path with the path above to the script and data files. I copied the shortcut icon over to the windows 7 desktop, but the "start in:" reference did not make it across.

So i entered this pathname again in properties for the shortcut on the windows 7 desktop. Unfortunately it isn't recognizing this; i can start foxpro from the windows 7 desktop, but it acts as if it's in the directory of its executable files under c:program files. I wondered if there was a way to describe a windows 7 version of the pathname for the script/data file directory, but i couldn't figure out how to do this. So i have three questions:1) how can i pass a pathname in the "start in:" field under properties for the foxpro shortcut icon on the windows 7 desktop to make it recognize my directory of scripts/data files that exists under my documents in the virtual version of xp?2) if i can succeed with this, is there a way to access the directory of scripts/data files from windows 7 (for example, to edit them with a text editor) without needing to start an xp virtual session? In other words, are the xp directories visible from win 7?3) alternatively, would it be feasible for me to put my directory of scripts/data files under my documents in the windows 7 directory tree, and is it possible to pass foxpro a parameter to tell it to "start in" (and act on) that directory?


Posted On: 2010-07-18 . View Related Posts . . View 4 Replies .

Batch Files Problem

Hi, i was wondering if anyone who is more knowledgeable then i can help out. Its problem something really simple but i cant seem to figure out what i'm doing wrong. Im trying to get a batch file to copy or move a couple of files from the public folder in windows 7 to a folder on the c drive in the program files. I would like the moved files to replace the ones already there. I've tried xcopy, copy, and move commands and cant get this to work. It always gives me access is denied in the command prompt even when i run it as administrator.

Posted On: 2010-03-12 . View Related Posts . . View 2 Replies .

Directory Assistance

Why do i need libraries, my name, users with my name, etc. ? I hated it in vista so i got rid of it and did a full version install of windows 7 professional. Now i have all the different directories. I just want one place for everything to go to. My pictures, music, documents, etc. Have a few different locations so i have to look all over for something. Whatever happened to just having a c drive and everything fell under that? And what is up with the 'access denied' box?

I am the only person who uses this laptop and i am the administrator and can't even get full access rights when i try to set them. Did i miss something along the way? I consider myself to be fairly computer intelligent for years & years now, and is this just something that is staring me in the face and i am overlooking it?


Posted On: 2010-05-16 . View Related Posts . . View 2 Replies .

Deleting Windows.old Directory

While installing windows 7 on a new flash drive, i goofed and installed it twice. I now have a windows. Old directory, with 11 gb of data. In trying to delete it, it says that i need administrator rights, but i am the administrator.

Posted On: 2009-10-27 . View Related Posts . . View 2 Replies .

Unable To Create Directory

Whenever i launched ie web browsers(yahoo, google or msn), a message window (1-1/2"h x 2-1/2"w) with a message "unable to create directory" popping up first in the center of screen (i have to close this window first to open up browser) and then ie browser home page will be opening. This is very annoying and i do not know what caused this and how to correct it.

It started happening after i created a limited user account and try to launching ie in the limited user account. No problem in the admin user account and if i change the limited user account to administrator.

My pc is dell inspiron 9300 and windows xp professional and ie 8 are installed, plenty of hd space and 1gb ram. I have this pc for 4 years and i never have this sort of problem before.


Posted On: 2010-01-04 . View Related Posts . . View 5 Replies .

Access To The Directory Is Denied

Why can't the admin be the admin? In windows 7, i sometimes attempt to install software. That is a basic function of an os, which i think i should be entitled to do. However, with some programs, the installer gets denied access because "access to the directory is denied". I try to take away the read-only status on my folders, but no, access is denied. It says my administrator should do so.

But, i am the administrator. Why can't i be the administrator of my own pc? Why is it not up to me if the folder should be protected or not?

Is there a way to get rid of this? Because disabling uac doesn't help, and when it is off my security center nags about it day in and day out. I just want to install sandbox2 for crysis for god's sake.


Posted On: 2010-01-26 . View Related Posts . . View 3 Replies .

Directory Structure And Access

Windows 7 has a new concept: libraries. They seem to be nothing but indexes to a bunch of directories. All the confusion and frustration with trying to access directories that appear to be locked, or for which you seemingly  have no permission (even though you are the system administrator), can be largely avoided if you approach your file structure as follows: click on the combination of windows key + e, then click on libraries, then double click on one of the 4 pre-made libraries: documents, pictures, music, video.

If you transferred your files from xp to windows 7 with windows easy transfer (which requires a belkin cable as well), and those inaccessible directories appear, you will be successful with the above method. I don't know if you have the same issues, or if the same solution holds, if you migrate from other window operating systems.

Continue to work through the libraries. For instance, if you want to transfer a file that is stored in a documents library directory to a directory that is stored in the pictures library, copy the file at the directory location underneath the documents library, click to open the pictures library and then find the directory where you want to copy the file to. Then save the file there.

Unfortunately, if you try to access your directory structure in "the old-fashioned way, " as it has existed since the dos days, you will continue to see folders that you cannot access. I agree with others that showing those non-accessible directories in windows 7 is extremely confusing, and what makes it worse is that the error message doesn't say something like: "this is a system folder that cannot be accessed, " or words to that effect.

Instead, microsoft makes you think that you can change permissions, and they lead you on a goose chase that in the end leaves you thinking that something is terribly wrong with your file system and its security, which in fact is not the case. What microsoft should have done is not show those "access denied" directories at all. I hope they will put out a fix for this soon.

Anybody have these same issues and/or other suggestions?


Posted On: 2010-02-16 . View Related Posts . . View 2 Replies .

Auto Run Directory

Back when i was running xp there used to be a directory that contained links or shortcut of programs that you wanted to start whenever you logged into windows. I'm using windows 7 and am looking for this directory without much success. I have some apps that keep running when i log in that i don't run (like instant messenger) that i want to not start. Don't know what this directory is called and the help isn't much help. Not even sure if windows 7 has this directory or it implements the "auto run" feature another way. Ny help would be appreciated.

Posted On: 2010-07-17 . View Related Posts . . View 3 Replies .

Directory Issue Xp/vista To Win 7

I have win 7 home premium 64-bit. I installed a game intended for win xp (rollercoaster tycoon 3) and it runs fine - with one exception - to use one game feature, the game needs to access:

C:usersmy namedocumentsmy pictures - which it cannot do because of the difference in the directories between xp and win 7. The same issue occurred with the game installed on vista. Rollercoaster tycoon 3 users developed a command prompt work around for *vista* as follows:

C:usersmy name>cd "c:usersmy namedocuments"

C:usersmy namedocuments>rmdir "my pictures"

C:usersmy namedocuments>mklink /j "my pictures" "c:usersmy namepictures"

Junction created for my pictures <<===>> c:usersmy namepictures

However, because the directories are different in win 7 than they are in vista, i need to know what kind of workaround to use so that the computer can redirect the game's request to access c:usersmy namedocumentsmy pictures to the correct folder in ****win 7*****

Is it possible to use the vista workaround, above, with just some slight changes to accommodate the differences between vista and win 7? If so, what **specific** changes do i need to make? Or, do i need to do something completely different than use a command prompt. If so, what exactly do i need to do?


Posted On: 2010-03-05 . View Related Posts . . View 6 Replies .

Xcopy: Unable To Create Directory

'm trying to write a batch file that will perform incremental backups each night. The file looks like this:

Xcopy "c:usersdavalynnmy documents" "z:backupsdavalynn backupmy documents" /h /r /s /e /i /c /y /d
Xcopy "c:usersdavalynnappdataroamingthunderbirdprofilesvdkm8ik1. Default" "z:backupsdavalynn backupvdkm8ik1. Default" /h /r /s /e /i /c /y /d
Xcopy "c:usersdavalynnfavorites" "z:backupsdavalynn backupfavorites" /h /r /s /e /i /c /y /d

The last two xcopy commands work fine. The first one, however, yields the following error:

Access denied
Unable to create directory - z:backupsdavalynn backupmy documents
File not found - *. *
0 file(s) copied

All the directories referenced in the batch file exist on the z: drive - i created them myself. There must be a syntax problem somewhere, and i've been looking at it for so long i can't see it.


Posted On: 2010-05-20 . View Related Posts . . View 2 Replies .

Installer Has Insufficient Privileges To Access This Directory

Why am i asked to be "administrator" when i am the only user, and am administrator in control panel, so it will install my programs in windows 7 ultimate-64? I upgraded to windows 7 ultimate-64. Now, as i try to install my programs (again!) It continually says: "the installer has insufficient privileges to access this directory. This installation cannot continue. Log on as administrator. " I am the administrator. There is no other user.control panel says i have administrator privileges. How do i get around this to install my programs will install? 

Posted On: 2009-11-02 . View Related Posts . . View 2 Replies .

Can't Write To Programs Directory - You Do Not Have Permission

Can't write to programs directory "you do not have permission" contact the administrator. I am the only acct on the pc & the admin. Trying to download a pgm & save it in the programs directory.

Posted On: 2009-11-13 . View Related Posts . . View 2 Replies .

Active Directory Domain Services Unavailable

I'm running windows 7 and after the last set of updates (4/15/2010) i can no longer access the print servers (version 2003). It gives me the message: active directory domain services unavailable. I have verified that dns is set up properly and have tried without the firewall active. I have also tried doing a system restore but that failed to fix the problem. I suspect a registry issue as i have the same problem regardless of what problem i try to print with.

I am also now having a problem with adobe and am getting the error message: unable to print: no pages were selected to print. I noticed that these patches are for patches. I am also unable to use the diagnostics program because it says i do not have the "download a file periodically that helps determine system problems" box " checked even though i do. My computer is a tool that is useless with out this ability.


Posted On: 2010-04-18 . View Related Posts . . View 2 Replies .

Active Directory Domain Services Not Available At This Time

I know this has come up before but i am at my wits end and i seem to have tried everything. I have a dell studio laptop running windows 7 connected by wireless to a bt home hub. It is connected, i thought locally, to a hp laserjet 1100 printer. Recently, suddenly, it refused to print out of word 2007 (and excel 2007)and the error message above has been displayed. I have tried re-installing the printer, both as myself and as administrator. I have tried troubleshooting, but this reconnects as a network printer and nothing happens.

I am not expert enough  to start doing professional things. Is there a fix or will i have to but a new printer? The annoying thing is that my imac works fine, but for some things i need to communicate via windows.


Posted On: 2010-04-09 . View Related Posts . . View 4 Replies .

Backup Error 0x8078014b - Failure In Creating A Directory

I keep getting the following error each night. The backup should be stored on an additional 2 tb hard disk. A manual backup works fine. The auto backup is scheduled for 7pm each night does not work. It indicates access denied. The backup was not successful. The error is: there was a failure in creating a directory on the backup storage location. (0x8078014b).

Posted On: 2010-03-25 . View Related Posts . . View 2 Replies .

.msi Installation Directory Must Be On A Local Hard Drive

Every time i try to run a particular . Msi i get this. "Installation directory must be on a local hard drive". Its not the msi as ive tested it on another computer. The msi is a plug-in tool called t-splines by autodesk. Ive also tried older versions with the same error, things i've tried so far:

Sys restore
Safe mode
Right click - take ownership

I uninstalled 7zip which i already had, then reinstalled with the . Msi from the website to test if it was all msi, however it actually worked. I was looking around for other . Msi install software just to test it but can't find any. If you could point me in the direction of some . Msi files which i can test on my rig. Edit, just tried a few other msi's i had on my computer and i get the error 1723.


Posted On: 2012-11-28 . View Related Posts . . View 12 Replies .

Error Code 1303 Insufficient Privileges To Access Directory

Error code 1303 insufficient privileges to access this directory c:/program files (x86) adobe/reader 9. 0/resource/font/pfm. Then it tells me to log in as administrator. How do i do that? All i'm trying to do is load adobe reader on my computer.

Posted On: 2010-07-13 . View Related Posts . . View 2 Replies .

Usb Drive Takes Long Time When Sorting Files In Directory

I have several external usb drives on my machine. Some of the folders on those drives contain several thousand files, the default is for them to be in name order. Fine. But i quite often want to rearrange them by date, everytime i do this i get the semi-transparent green progress bar at the top of the folder but it seems to take an age to complete.

On previous versions of windows clicking on the column you wanted files sorted by made the sort almost instant. Each time i go back to the folder i have to wait all over again. I thought i had added the folders to the library etc to make searching and sorting easier. Am i doing/not doing something stupid?


Posted On: 2010-04-08 . View Related Posts . . View 2 Replies .

Add " Print Directory Listing " Option To Explorer Shortcut Menu

Get error message when trying to employ the "print directory listing" solution found at: http://support.microsoft.com/kb/321379/en-us on my new (as of feb 2010) windows 7 system.

Was able to creates the windows explorer context menu entry for the task, but selecting it just results in the following error message: "this file does not have a program associated with it for performing this action. Please install a program or . Create an association in the default programs control panel. " Wentback and double-checked my regedit work. Even deleted the new key and re-created it (just in case. )

Note: i had successfully used the instructions in this kb article to add "print directory listing functionality on winxp systems, so i reviewed those instructions to see any differences, and noticed that there *no* "associate" step for vista/win7 in the article, but that step still shown for xp. And, there appears to be no way to associate a program (in this case, a ". Bat") with an entire "folder" as the target. Only choices i see presented in the "default programs control panel" are ". [Extensions]", and protocols.


Posted On: 2010-04-03 . View Related Posts . . View 5 Replies .

Media Player Cannot Play File, File Type Or Codec Not Supported

This is a new computer, win med player will not play vid i imported from my camera. Even sample video will not play.

Posted On: 2010-01-20 . View Related Posts . . View 2 Replies .

Disk Management Directory Fails To List Disk Drive C

I have an intel i7 cpu, running windows 7 pro and the computer management/disk management directory fails to list disk drive c:/ as part of the volume list . C:/ drive is visible in "my computer properties" and works fine! Intel i7 cpu, running windows 7 pro

Posted On: 2009-12-01 . View Related Posts . . View 7 Replies .

Error - Active Directory Domain Services Not Active

Printer keeps going "offline" and i get "active directory domain services not active" error message. I have a 2 month old hp laptop with windows 7. I had a hp photosmart 2710 that kept going off line so i purchased a new printer, epson stylus nx510 and now it keeps going offline. When i do the troubleshooting, it says it is off network. Then i get a message that says "active directory domain services not active" when i try to fix it. I have searched for new driver updates and there are not any available. I think it is something in windows 7.

Posted On: 2010-05-04 . View Related Posts . . View 2 Replies .

Can I Delete Program From Program-files (x86) Directory ?

Why is windows media player in the program files directory (i assume for 64 bit programs) and also in the program files (x86)? It runs ok from either. Can i delete it from (x86) and other duplicates as well? I also note that office 2007 seems to be in the (x86). Does that mean it is not a 64 bit program?

Posted On: 2009-11-12 . View Related Posts . . View 3 Replies .

Live File System Will Not Save File

Live file system will not save file!Windows 7 and udf will copy several files and then you get to the last file which is 700 meg and the space free bar under the dvd rw drive shows 1. 2 gig left. The copy starts and runs till about 350 meg left then it slows down all the way to 17 kbs and also till 10 k was left on the dvd. By this time about 5 hrs have gone by and the copy window has showed 1 hr left for 3 hrs. The cancel button won't work task manager when used will crash the system. You can force a shut down but then you have to reactivate norton with your purchase code. A search of the internet for me was no help at all.

Posted On: 2010-06-12 . View Related Posts . . View 4 Replies .

How Do I Open A File As A Zip File?

I work with an application that packages files into "zipped folders" (yeah, just zip files), but uses a different file extension. It works exactly like . Gadget (windows gadgets) and . Themepack (windows themes) files work: you can rename them to .zip and open them with the zip viewer.

I want to skip the step of renaming it each time. I want to just associate the files with the zip viewer. In fact i don't need to associate it, just open-with a single time: i know if i can do it once, it will always be an available option on the right-click context menu of the files.

But i can't find which program is associated with zip files. I tried searching the system-32 folder.


Posted On: 2010-01-09 . View Related Posts . . View 6 Replies .

How To Get Programs From Old Windows File Into Win 7 Programs File ?

My new netbook came with win 7 starter. I downloaded win 7 home. Now  how do i get programs from old windows file which came loaded on my new netbook into the win 7 home programs file so they are activated and accessible again?

Posted On: 2010-01-05 . View Related Posts . . View 3 Replies .

This File Does Not Have A Program Associated With It

"this file does not have a program associated with it for performing this action. " Error when double clicking folder or c drive. Can open c drive or folder by double clicking. I have had an issue for quite some time with open my c drive or any folders. Every time i click to open either one, i get: "this file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the default program control panel"

However, if i right click on the mouse and choose open, i can access the drive/folder with no problem. How do i correct this back to ordinary clicking on the drive/folder?


Posted On: 2010-06-22 . View Related Posts . . View 4 Replies .

How Do I Find A Particular File ?

In windows xp, i could go to my computer/drive/files/search, and do a search for a particular file. This seems to be hidden in windows 7, and the search capability provides no clues. How do i find a particular file, like normal. Dot?

Posted On: 2009-11-15 . View Related Posts . . View 2 Replies .